Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App frontend is not reachable #1340

Closed
GokhanGuzelyurt opened this issue Jan 8, 2025 · 2 comments
Closed

App frontend is not reachable #1340

GokhanGuzelyurt opened this issue Jan 8, 2025 · 2 comments
Labels
invalid This doesn't seem right

Comments

@GokhanGuzelyurt
Copy link

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: true
default: "test"
type: choice
options: ["cert", "test", "dev", "bce", "preprod", "prod"]
driver:
description: "Choose the test driver"
required: true
default: "chrome"
type: choice
options: ["chrome", "firefox"]
scanWithSQ:
description: "Run SonarQube Scan?"
required: true
default: false
type: boolean
scanWithCM:
description: "Run Checkmarx Scan?"
required: true
default: false
type: boolean
includeTags:
description: "Tags to include in test run"
required: true
default: "@testrail"
testRun:
description: "TestRail run"
required: false
default: "5890" # Default test run for non-cert environment
ipmsToClose:
description: "Number of IPMs to close"
required: false
default: "0"

permissions:
id-token: write # This is required for requesting the JWT for AWS role assumption
contents: read # This is required for actions/checkout

env:
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-spec
timeout-minutes: 240
container:
image: markhobson/maven-${{ inputs.driver }}:jdk-21

steps:
  - name: Checkout Code
    uses: actions/[email protected]

  - name: configure aws credentials
    uses: aws-actions/configure-aws-credentials@v4
    with:
      audience: sts.amazonaws.com # This is the default value, change this to match an audience in the oidc IDP in AWS
      role-to-assume: arn:aws:iam::035162605257:role/GitHub-Action-Embase-Non-Prod # Your role ARN here
      role-session-name: qa-automation # Use a sensible role session name here
      aws-region: us-east-1

  - name: Get Secrets
    uses: aws-actions/aws-secretsmanager-get-secrets@v2
    with:
      secret-ids: |
        SONAR_TOKEN, SonarQube
        SONAR_HOST_URL, SONAR_HOST_URL
      parse-json-secrets: true

  - name: Show System Info
    run: |
      find . -name pom.xml
      cat /etc/os-release
      curl https://ipinfo.io/ip

  - name: Compile Tests
    run: |
      mvn --no-transfer-progress clean test-compile exec:java \
      -Dexec.classpathScope=test -Dexec.mainClass=utils.TestRailIntegration

  - name: run SonarQube scan
    id: sonar-scan
    if: ${{ inputs.scanWithSQ == true }}
    uses: sonarsource/sonarqube-scan-action@master
    env:
      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 check
    if: ${{ inputs.scanWithSQ == true }}
    id: sonarqube-quality-gate-check
    uses: sonarsource/sonarqube-quality-gate-action@master
    env:
      SONAR_TOKEN: ${{ env.SONAR_TOKEN }}
      SONAR_HOST_URL: ${{ env.SONAR_HOST_URL }}

  - name: Run Maven Tests
    run: |
      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 File
    run: |
      if [[ -f target/rerun.txt ]]; then
        cat target/rerun.txt
      fi
    shell: bash
@MikeMcC399
Copy link
Collaborator

@GokhanGuzelyurt

This issue list is for problems using cypress-io/github-action and I don't see any use of this action in your workflow.

Also you seem to be using Selenium, not Cypress, so in this case this repository is not relevant for you.

I suggest to close this issue.

BTW: When you post yaml code it is a good idea to use a Markdown fenced code block

See Creating and highlighting code blocks

```yml
name: example-basic
# This workflow represents a set of basic End-to-End tests
on:
  push:
    branches:
      - 'master'
and so on
```

Good luck in solving your issue!

@MikeMcC399 MikeMcC399 added the invalid This doesn't seem right label Jan 8, 2025
@GokhanGuzelyurt
Copy link
Author

Thank you Mike

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants