Create a browserstack.yml file as in the following code sample:
```yml
userName: YOUR_USERNAME
accessKey: YOUR_ACCESS_KEY
projectName: Sample Project Name
buildName: CLI Upload Build
CUSTOM_TAG_1: Regression
CUSTOM_TAG_2: P0
# Use CUSTOM_TAG_<N> and set more build tags as you need.
testObservabilityOptions:
reportPath: /Users/johnDoe/ProjectDirectory/allure-results
# Provide path to either a zip folder of your Allure Reports / JUnit XML files or the directory containing the same
format: #allure or junit
#Defaults to junit
```
Simply run the following command to upload your test results to Test Reporting & Analytics. The CLI will look for the test results and browserstack.yml file in the current directory and upload the test results to Test Reporting & Analytics.
Terminal
./browserstack-cli upload-report
# Alternatively, you can specify the browserstackConfigFile, reportPath, and reportFormat with the following command:
./browserstack-cli upload-report --browserstackConfigFile="<custom-browserstack.yml-path>"--reportPath="<reportFolderPath/reportZipFile>"--reportFormat="allure/junit"
Post report upload completion, you will see the Test Reporting & Analytics build URL printed in the terminal. Alternatively, you can also navigate to your build run using Build Runs.
Create a browserstack.yml file as in the following code sample:
```yml
userName: YOUR_USERNAME
accessKey: YOUR_ACCESS_KEY
projectName: Sample Project Name
buildName: CLI Upload Build
CUSTOM_TAG_1: Regression
CUSTOM_TAG_2: P0
# Use CUSTOM_TAG_<N> and set more build tags as you need.
testObservabilityOptions:
reportPath: /home/user/ProjectDirectory/allure-results
# Provide path to either a zip folder of your Allure Reports / JUnit XML files or the directory containing the same
format: #allure or junit
#Defaults to junit
```
Simply run the following command to upload your test results to Test Reporting & Analytics. The CLI will look for the test results and browserstack.yml file in the current directory and upload the test results to Test Reporting & Analytics.
Terminal
./browserstack_cli upload-report
# Alternatively, you can specify the browserstackConfigFile, reportPath, and reportFormat with the following command:
./browserstack_cli upload-report --browserstackConfigFile="<custom-browserstack.yml-path>"--reportPath="<reportFolderPath/reportZipFile>"--reportFormat="allure/junit"
Post report upload completion, you will see the Test Reporting & Analytics build URL printed in the terminal. Alternatively, you can also navigate to your build run using Build Runs.
Create a browserstack.yml file as in the following code sample:
```yml
userName: YOUR_USERNAME
accessKey: YOUR_ACCESS_KEY
projectName: Sample Project Name
buildName: CLI Upload Build
CUSTOM_TAG_1: Regression
CUSTOM_TAG_2: P0
# Use CUSTOM_TAG_<N> and set more build tags as you need.
testObservabilityOptions:
reportPath: C:\Users\JohnDoe\ProjectDirectory\allure-results
# Provide path to either a zip folder of your Allure Reports / JUnit XML files or the directory containing the same
format: #allure or junit
#Defaults to junit
```
Simply run the following command to upload your test results to Test Reporting & Analytics. The CLI will look for the test results and browserstack.yml file in the current directory and upload the test results to Test Reporting & Analytics.
PowerShell
.\browserstack_cli.exeupload-report# Alternatively, you can specify the browserstackConfigFile, reportPath, and reportFormat with the following command:.\browserstack_cli.exeupload-report--browserstackConfigFile="<custom-browserstack.yml-path>"--reportPath="<reportFolderPath/reportZipFile>"--reportFormat="allure/junit"
Post report upload completion, you will see the Test Reporting & Analytics build URL printed in the terminal. Alternatively, you can also navigate to your build run using Build Runs.