Prerequisites :
- User should be on the Home screen of the BQ platform.
- Postman application should be installed onto the machine.
Step-by-step guide (BQ Integration with CICD Tools)
- Click on Setup.
- Click on Add On (s).
- Click on Add Add-on button.
- Enter meta-data for below fields :
- Name
- Add-On Type (CiClient selected by default)
- Description
- Comma Separated List of IP's (enter ip address of all the machines user wishes to allow for CI/CD. You can look up for the machine(s) ip address by typing my ip on google)
- Click on Save.
- Once user clicks on Save button, the Api Key and Secret Key will be auto-generated.
- Copy the Secret Key and use it as Authorization with Bearer Token in CICD Tools.
In the CI/CD tool, please use https://app.bqurious.com/api2/ci/executeFromCi/ as the request URL for POST and https://app.bqurious.com/api2/ci/fetchSummaryResult/ as the request URL for POST.
Step-by-step guide (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
Related articles
Add Comment