Create Test Passes for a Test Execution Record

From 25.8 onwards, you don't need to make an explicit REST API call to create test passes, as it is automatically done along with Reports upload. However, if you still to create them, then using the REST API for 'CreateTestPasses', will delete existing Test Passes and Test Results, if any, and create the new entries.

The following shows a request to Create Test Passes once a run is completed. The latest XML file (indicated by the highest suffix number in the file name) in the Attachments applet will automatically be selected as input to create test pass entries. Preconditions are that Test Sets are associated with Test Plans and that Test Pass has the Completed LOV.

URL: https://ServerName:Port/siebel/<Version>/service/Automation Rest Service/CreateTestPasses
HTTP Method: POST
Content type: application/json 
Authorization: Basic

Request body:
{
"body":
{
"Id":"88-1WCI9B"
}
}
Response to a successful request:
{
"Status": "Test Pass Entries Created Successfully. Query in Test Pass View Starting with 88-1WCI9B"
}
  • Test passes will be automatically generated upon completion of execution and hence Create Test Passes button will be disabled.
  • The "Create Test Passes" button is enabled when the "Import Test Step Results" profile parameter is set to "N".

Button Behavior

When you click the "Create Test Passes" button:

  1. Initial Click: A confirmation dialog is displayed with the message: "Test Pass and the child entries are already created for this Test Execution. Do you want to re-create Test Passes? Earlier ones will be deleted permanently."
  2. Confirmation: If you confirm, the Test Passes will be re-created, and the earlier ones will be deleted permanently.
  3. Test Passes and Test Step Results Already Created: The button is disabled when both Test Passes and Test Step Results are created.
  4. Test Passes Deleted: If Test Passes are deleted and you click the "Create Test Passes" button again, the confirmation dialog will not appear, and Test Passes will be created. However, Test Step Results will not be uploaded.