-
Notifications
You must be signed in to change notification settings - Fork 26
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
How to specify the environment variable BROWSERSTACK_BUILD_NAME to generate test report #25
Comments
The BrowserStack Jenkins plugin will directly set the build name for the test. It sets the Environment variable BROWSERSTACK_BUILD_NAME. |
@wati123321 ======================================== C:\Users\phuc.jenkins\workspace\project_aaa>browserstack-cypress run --build-name jenkins-project_aaa-7
|
@phucgame You can generate the reports using the CLI functionality as mentioned in the following link, https://www.browserstack.com/docs/automate/cypress/generate-reports. We will let you know once we have added support for Cypress reports in the Jenkins plugin. Meanwhile, you can use the above-mentioned method to generate reports using Cypress on BrowserStack. |
I'm having the same issue trying to generate the report
|
@msilesgap You can generate HTML reports with Cypress at BrowserStack. Embedded reports within Jenkins is not supported at the moment. For reference: https://www.browserstack.com/docs/automate/cypress/generate-reports |
I am also getting the same error. How to set this variable in the parallel config JSON file for testNG? |
Anyone got the solution for this problem, with Ruby 3.x I am getting same error... |
BROWSERSTACK_BUILD_NAME (variable name) will need to be kept as is and cannot be modified to a custom name since the BrowserStack Plugin generates the Build Name (value) at runtime. This Build name is consumed by the BrowserStack Cypress Test Report Action to map the session on the BrowserStack Platform with the results to be published on Jenkins. If you have any further queries with respect to the BrowserStack plugin, you may want to reach out to BrowserStack Support. |
hey was this issue fixed? I am fixing the exact issue |
@ hayaalresheq94 You can try and follow the steps mentioned by abhimanyu1589 |
My sample project is using Jenkins triggers to run Browserstack Cypress by command:
browserstack-cypress run
I installed Browserstack plugin in Jenkins. Follow steps but got failed at generating report as below:
========================================
[BrowserStack] Generating BrowserStack Test Report
[BrowserStack] BrowserStack Project identified as : AUTOMATE
[BrowserStack] [ERROR] BrowserStackException occurred while fetching build: com.browserstack.automate.exception.AutomateException: Build not found by name: jenkins-project_aaa-7
[BrowserStack] BrowserStack Report Status: Failed
========================================
This is a warning but I don't know how to do
========================================
This step will generate BrowserStack Test Report by utilising the build name from the environment variable BROWSERSTACK_BUILD_NAME set by the BrowserStack plugin
========================================
Reference:
--> https://www.browserstack.com/docs/automate/selenium/jenkins?ref=jenkins_plugin#JenkinsUI
The text was updated successfully, but these errors were encountered: