Create a Results Query in Certify Results API Swagger
With Certify Results API Swagger, you are able to create a results query that will be used to retrieve Certify results, processes, and attributes.
Before you begin this process, you must have completed the following:
- Registered your Certify databases in the Worksoft Management Studio. For more information, see Registering Certify Databases for Certify Results API.
- Created a token in Certify Results API in order to access the API and to create results queries. For more information, see Generating a Token in Certify Results API.
You are able to use one of the following methods to create a results query:
- GET- Retrieves Certify results for the specified project and other filter criteria.
- POST - Retrieves Certify results for the specified project and other filter criteria.
To create a results query in Certify Results API Swagger with the GET method:
Before you open Certify Results API Swagger, you need to open Certify Results API to get your token.
-
Open Certify Results API on your Certify Services server with the following URL address:
http://<servername>/CertifyResultsAPI
-
Using your Worksoft Management Studio credentials, enter your credentials and click Login.
Certify Results API opens.
-
Click the Manage Tokens tab.
- Click the Copy Token to Clipboard button next to the token that you want to use in Swagger.
-
Open Certify Results API Swagger through the following URL address:
http://<servername>/CertifyResultsAPI/swagger/ui/index
- In the api_key field, paste the token that you copied.
-
Click Explore.
The Worksoft.Certify.ResultsAPI Swagger page opens.
-
Expand ProjectV1 and click the first GET method.
- In the Parameters section, type your project name in the projectName field.
- In the Parameters section, type your result folder name in the resultFolder field. The name should begin with /Client Project Name/QA Results.
- If you want to filter your results, you can add additional parameters to your request, including status, dates, and attributes. These parameters are optional.
-
If you want to include all the log processes for the results, select true from the includeLogProcess drop-down list.
If you do not want to include log processes, select false.
-
In the Response Messages section, click the Try it out! button to test the query.
The Results Query is created.
-
Open the query in a reporting tool to visualize the results.
To create a results query in Certify Results API Swagger with the POST method:
Before you open Certify Results API Swagger, you need to open Certify Results API to get your token.
-
Open Certify Results API through the following URL address:
http://<servername>/CertifyResultsAPI
-
Using your Worksoft Management Studio credentials, enter your credentials and click Login.
Certify Results API opens.
-
Click the Manage Tokens tab.
- Click the Copy Token to Clipboard button next to the token that you want to use in Swagger.
-
Open Certify Results API Swagger through the following URL address:
http://<servername>/CertifyResultsAPI/swagger/ui/index
- In the api_key field, paste the token that you copied.
- Click Explore.
-
Click the POST method to expand the operations.
- From the Response Content Type drop-down list, select application/json.
- In the request field, type in your request value. Use the Example Value for guidance.
- From the Parameter Content Type drop-down list, select application/json.
-
In the Response Messages section, click the Try it out! button to test the query.
The Results Query is created.
- Open the query in a reporting tool to visualize the results.