Skip to content

Commit

Permalink
all_Automation_Git_Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
AmolKadam-Tekdi committed Jul 8, 2024
1 parent 2a40803 commit 2e46039
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/all-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Java CI with Maven and TestNG
on:
push:
branches:
- main
pull_request:
branches:
- main
- all_Automation_Actions
# pull_request:
# branches:
# - main

jobs:
build:
Expand All @@ -16,13 +16,16 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '11'
java-version: '17'

# - name: Build with Maven
# run: mvn clean install

- name: Build with Maven
run: mvn clean install
# - name: Run TestNG tests
# run: mvn test -DsuiteXmlFile=testng.xml

- name: Run TestNG tests
run: mvn test -DsuiteXmlFile=testng.xml
-name: Run tests
run: mvn test
4 changes: 3 additions & 1 deletion allAutomation/src/main/java/Tests/ALL_Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,20 @@ public static void Login() throws Exception {
browserRun();
LoginPage lp = PageFactory.initElements(BaseUtils.driver,LoginPage.class);

logstep("Enter username");
driver.findElement(By.id(":r0:")).sendKeys("Amol");

waitForUi(2);
logstep("Enter password");
driver.findElement(By.id(":r1:")).sendKeys("Amol@123");

logstep("Login button click");
driver.findElement(By.xpath("//button[@type='submit']")).click();

waitForUi(2);

Thread.sleep(3000);


driver.findElement(By.xpath("//div[@class='MuiBox-root css-14j5rrt']")).click();

Thread.sleep(3000);
Expand Down

0 comments on commit 2e46039

Please sign in to comment.