Running Tests from CICD pipeline
Bq provides integration with your CI/CD pipelines by way of exposed REST APIs.
Please refer to Integrating with CICD pipeline for integrating the CI/CD tool.
Instructions to Create Execution Plan in BQ Platform
Click on Execution on left panel.
Â
Click on Execute Automated Test.
Â
Select the Suite to execute.
Â
Select Test Case(s) from the selected Test Suite.
Â
Enter meta data for Execution Details section :
Run Name
Executing in Sprint
Build Number (optional)
Browser Instances (1, selected by default)
Distribute Across Machines (optional)
Execution Tags (if any)
Email Execution Report To (optional)
Â
Select the browser / Simulator / Real device under Execution Machine(s) section.
Â
Click on Save Plan.
Â
Click on Plans on right side.
Â
Copy the Access Token displayed with the associated plan.
Â
Create an API to execute using POST url https://app.bqurious.com/api2/ci/executeFromCi/
Use this Access Token as the runToken under Body tab (Body > Raw), in CICD Tools.
Â
If App download from the URL and build no. is dynamic then we will use a variable in Url.Â
Â
If Authentication is Required in Execution, user has to set the variable USER_NAME and PASSWORD in json format in CICD Tools.
Â
Click on Send button on the CI/CD tool to execute the tests.
Â
Copy the execToken from the result.
Â
Create another API for fetching the execution result using POST url https://app.bqurious.com/api2/ci/fetchSummaryResult/ and use the execToken in the Body (raw)Â
Use same Bearer Token for authentication.Click on Send button.
You should get result like thisÂ
Â