You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
When I perform regression testing with GitHub action, I cannot interact with FE after logging into the application.Tests without login step are working.I don't have any problems when I run it on Jenkins.
Error message:
Case step number 2: user logs in as Default User:
Timed out after 10 seconds. Element not found
For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
Build info: version: '4.16.1', revision: '9b4c83354e'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '5.10.228-219.884.amzn2.x86_64', java.version: '21.0.5'
Driver info: driver.version: unknown
Yaml file:
name: QA-Automation-Test
on:
workflow_dispatch:
inputs:
environment:
description: "Choose the environment"required: truedefault: "test"type: choiceoptions: ["cert", "test", "dev", "bce", "preprod", "prod"]driver:
description: "Choose the test driver"required: truedefault: "chrome"type: choiceoptions: ["chrome", "firefox"]scanWithSQ:
description: "Run SonarQube Scan?"required: truedefault: falsetype: booleanscanWithCM:
description: "Run Checkmarx Scan?"required: truedefault: falsetype: booleanincludeTags:
description: "Tags to include in test run"required: truedefault: "@testrail"testRun:
description: "TestRail run"required: falsedefault: "5890"# Default test run for non-cert environmentipmsToClose:
description: "Number of IPMs to close"required: falsedefault: "0"permissions:
id-token: write # This is required for requesting the JWT for AWS role assumptioncontents: read # This is required for actions/checkoutenv:
FULL_VERSION: ${{ github.ref_name }}.${{ github.run_number }}testRun: ${{ inputs.testRun }}run-name: "This workflow is triggered by @${{ github.actor }} on the event: ${{ github.event_name }}"jobs:
automation-test:
runs-on:
group: elsevier-large-docker-spectimeout-minutes: 240container:
image: markhobson/maven-${{ inputs.driver }}:jdk-21steps:
- name: Checkout Codeuses: actions/[email protected]
- name: configure aws credentialsuses: aws-actions/configure-aws-credentials@v4with:
audience: sts.amazonaws.com # This is the default value, change this to match an audience in the oidc IDP in AWSrole-to-assume: arn:aws:iam::035162605257:role/GitHub-Action-Embase-Non-Prod # Your role ARN hererole-session-name: qa-automation # Use a sensible role session name hereaws-region: us-east-1
- name: Get Secretsuses: aws-actions/aws-secretsmanager-get-secrets@v2with:
secret-ids: | SONAR_TOKEN, SonarQube SONAR_HOST_URL, SONAR_HOST_URLparse-json-secrets: true
- name: Show System Inforun: | find . -name pom.xml cat /etc/os-release curl https://ipinfo.io/ip
- name: Compile Testsrun: | mvn --no-transfer-progress clean test-compile exec:java \ -Dexec.classpathScope=test -Dexec.mainClass=utils.TestRailIntegration
- name: run SonarQube scanid: sonar-scanif: ${{ inputs.scanWithSQ == true }}uses: sonarsource/sonarqube-scan-action@masterenv:
SONAR_TOKEN: ${{ env.SONAR_TOKEN }}SONAR_HOST_URL: ${{ env.SONAR_HOST_URL }}with:
projectBaseDir: ./args: > -Dproject.settings=sonar-project.properties -Dsonar.branch.name=${{ github.ref_name }} -Dsonar.projectVersion=${{ env.FULL_VERSION }} -Dsonar.projectBaseDir=./
- name: SonarQube Quality Gate checkif: ${{ inputs.scanWithSQ == true }}id: sonarqube-quality-gate-checkuses: sonarsource/sonarqube-quality-gate-action@masterenv:
SONAR_TOKEN: ${{ env.SONAR_TOKEN }}SONAR_HOST_URL: ${{ env.SONAR_HOST_URL }}
- name: Run Maven Testsrun: | mvn --no-transfer-progress verify -D it.test=RunAllTest \ -D environment=${{ inputs.environment }} \ -D ipmsToClose=${{ inputs.ipmsToClose }} \ -D webdriver.provided.type=${{ inputs.driver }} \ -D cucumber.filter.tags=${{ inputs.includeTags }}
- name: Check for Rerun Filerun: | if [[ -f target/rerun.txt ]]; then cat target/rerun.txt fishell: bash
The text was updated successfully, but these errors were encountered:
Hi,
When I perform regression testing with GitHub action, I cannot interact with FE after logging into the application.Tests without login step are working.I don't have any problems when I run it on Jenkins.
Error message:
Case step number 2: user logs in as Default User:
Timed out after 10 seconds. Element not found
For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
Build info: version: '4.16.1', revision: '9b4c83354e'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '5.10.228-219.884.amzn2.x86_64', java.version: '21.0.5'
Driver info: driver.version: unknown
Yaml file:
name: QA-Automation-Test
The text was updated successfully, but these errors were encountered: