How to Verify Request Data

Bqurious platform provides you the feature running tests to verify the request data. It allows you to verify the request API parameters in between execution & validate that appropriate data is going to the server.

Prerequisites #

  • BQMITM Certificate should be installed
  • For mobile, proxy should be added in WiFi setting

Adding BQMITM Certificate In System #

Steps to add BqMitm Certificate in MacOS X #

  1. Navigate to mitmcert folder in Bq Client installer directory. Two certificate files will be displayed in this folder.
  2. Right click and open the BqMitmCert.crt file.
  3. Keychain Access window will open. You will be able to view Bequrious Impersonating proxy Certificate.


  4. Now, right click on Bequrious Impersonating Proxy and click on get Info option.
  5. You will see the following popup. Expand the Trust Manager by clicking on Trust section shown in the below picture.
    Select Always Trust for When using this certificate option.



    Proxy setup is done. Create test with verify Request and the test is ready to run.

 

Steps to add BqMitm Certificate in Microsoft Windows #

  1. Open Microsoft Management Control (Start > Run > mmc.exe)
  2. Click on File menu


  3. Select Add/Remove Snap-in


  4. Under Available snap-ins, click Certificates


  5. Click Add.


  6. Select Computer account


  7. Click on Next.


  8. Select Local computer


  9. Click on Finish.


  10. Now, back in MMC, in the console tree, double-click on Certificates


  11. Right-click on Trusted Root Certification Authorities.


  12. Click on All Tasks under Trusted Root Certification Authorities.


  13. Under All tasks, select Import.


  14. The Certificate Import Wizard will open.

  15. Click on Next button.

  16. Click on Browse.

  17. Select the file from the mitmcert folder under the client installed location.


  18. Click on Open button.


  19. Click on Next button on the Certificate Import Wizard.

  20. Click on Next button.

  21. Click on Finish button.

  22. Import successful pop up should be displayed.


Creating test for verifying Request Data #

  1. Navigate to the Test Case creation screen.
  2. Create a test case with keyword verifyRequest.
  3. Save the test case.
  4. Create a Test Suite and add the test to the Test Suite.
  5. Navigate to Execute Automated Test
  6. Select the Suite.
  7. Select the Test suite.
  8. Enter the meta data for Execution Details: Run Name, Executing in Sprint, Build Number, Browser Instances, Distribute Across Machines, Execution Tags, Email Execution Report To
  9. Under Additional Settings section, Select checkbox for Enable Proxy, enter the Proxy Port (default : 9994), Enter the value for Allow URL(optional)
  10. Select machine and browser to execute the test case.
  11. Click Run Selected button.

Here’s a video for your reference :