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

Question: TestOps plugin does not find tests from testplan.json in Allure.Reqnroll #553

Closed
egorsh0 opened this issue Jan 23, 2025 · 0 comments

Comments

@egorsh0
Copy link

egorsh0 commented Jan 23, 2025

I have install Allure.Reqnroll plugin + create path to allure-result in solution folder

There is a combination of dotnet (reqnroll) + Jenkins + TestOps

  1. Tests are selected on TestOps
  2. Job is selected to start
stage('Testing') {
    steps {
withAllureUpload(credentialsId: 'testops-token', name: '${JOB_NAME} - #${BUILD_NUMBER}', projectId: 'XX', results: [[path: '../../../../../allure-results']], serverId: 'testops', tags: '') {
script {
  sh """
       dotnet test --environment ASPNETCORE_ENVIRONMENT=${params.env}
       """
      }
    }
   }
 }
  1. testplan is created in the project folder upon startup
    /home/jenkins/agent/workspace/example-tests/.allure-ee/testplan.json
  • testplan.json
    {"version":"1.0","tests":[{"id":"31436","selector":"example.Tests/example-tests/client10/client-service\/client10\/get/001 Client exists"}]}
    or
    {"version":"1.0","tests":[{"id":"35982","selector":"example.Tests/example-tests/get/003 service"}]}
    where
  • example.Tests is ProjectName
  • example-tests/client10 or example-tests - folders to the feature file
  • client-service/client10/get/ or get - feature name
  • 001 Client exists or 003 service - scenario name
  1. does not find any cases when launched

Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
AspectInjector|2.8.1: Found 0 aspects, 0 injections
example.Tests -> /home/jenkins/agent/workspace/example-tests/Services/example.Tests/bin/Debug/net8.0/example.Tests.dll
Test run for /home/jenkins/agent/workspace/example-tests/Services/example.Tests/bin/Debug/net8.0/example.Tests.dll (.NETCoreApp,Version=v8.0)
VSTest version 17.11.0 (x64)

@egorsh0 egorsh0 changed the title TestOps plugin does not find tests from testplan.json in Allure.Reqnroll Question: TestOps plugin does not find tests from testplan.json in Allure.Reqnroll Jan 23, 2025
@egorsh0 egorsh0 closed this as completed Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant