From 2e460390e8855a025843ac807b790900ccf2e4d0 Mon Sep 17 00:00:00 2001 From: AmolKadam-Tekdi Date: Mon, 8 Jul 2024 14:23:41 +0530 Subject: [PATCH] all_Automation_Git_Actions --- .github/workflows/all-automation.yml | 23 +++++++++++-------- .../src/main/java/Tests/ALL_Test.java | 4 +++- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/.github/workflows/all-automation.yml b/.github/workflows/all-automation.yml index 0708dfc2..07c97958 100644 --- a/.github/workflows/all-automation.yml +++ b/.github/workflows/all-automation.yml @@ -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: @@ -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 \ No newline at end of file + -name: Run tests + run: mvn test \ No newline at end of file diff --git a/allAutomation/src/main/java/Tests/ALL_Test.java b/allAutomation/src/main/java/Tests/ALL_Test.java index 0a48df83..5d0383b4 100644 --- a/allAutomation/src/main/java/Tests/ALL_Test.java +++ b/allAutomation/src/main/java/Tests/ALL_Test.java @@ -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);