Hello Subject-7 Development Team,
I'm currently reading the spec of Subject7 REST API (<Base URL>/api/v2), and I got some questions on the current provided Subject 7 REST API. Would you please feel free to have a check and give the feedback?
-
Cloud Run Category:
- POST: /executions - By the description it is to send Execution Set to Cloud Run.
My Question: Is there any way to use REST API to run the Test Case Independent Run? (Open a Test Case in Subject 7, then Set the Date Set, click the Cloud Run -> View Results in the Test Case Independent Results tab. In this case there will be no Execution Set defined and run a single test case in Cloud Run with only one Data Set selected.)
- POST: /load-plan-executions
My Question: What is the Plan Execution? (Currently I didn't see any Plan related hyperlink or menu in the Subject7 instance bar. Is this functionality current supported or not? - If supported, how is the manual step to run it in Subject 7 online page?)
-
Executions Category
- GET: All the Method Resource URI (/executions, /executions/xxx, /test-case-executions, /step-executions, etc.)
My Question: I did some tests, it looks like it will only be able to retrieve the Execution Set run results. If we have a single cloud run direct from the Test Case (Open Test Case in Subject 7, then Select Data Set and Click Cloud Run to view the Results in Test Case Independent Results tab), is there any way that REST API can be utilized to get the Test Case Independent Results?
- GET: /test-case-executions/{testCaseExecutionId}
JSON Results: for "dataSets" the json value is like: "dataSets": [{"XXXX-A", "XXXX-B"]
My Question: The results only show the Data Set Name, but there is no mapping for the Data Set Name is under which Data Template ID or Name. If we want to utilize the REST API, how can we identify which Data Set is for which Data Template if there will be multiple Data Templates to be used in a single Test Case definition in Subject 7?
- GET: /step-executions
My Question: Only the Failed Step will be returned, is this correct? (It looks like if it is an Archived Instance, it ONLY gave the Failed Step. In case if the Instance Run is NOT Archived, will the PASS or SKIP Step returned or not?)
-
Load Testing Category
- This category looks related to the Plan Executions term
My Question: I'm not seeing any Plan related hyperlink or menu item in Current Subject 7 page. Is this functionality current supported or not? (If yes, please help to give some more detailed information on this.)
-
Data Set Category
- GET: /data-sets
Current looks like this method will get all the Data Set for a given Data Template. There is NO other filter option or method that can only get the information by a given Data Set Name to reduce the return json data, is this correct?
-
My Question: Is there any supported REST API that can do the Data Set Data import/update based on the defined Data Template fields?
The Main Purpose is that I would like to utilize the Subject-7's provided REST API to create Test Cloud Run and Get the Test Run Results.
- Create Cloud Run Execution
-
Execution Set run: based on REST API Description, it should be currently supported.
-
Test Case Independent Cloud Run: Based on my test, It is NOT working by REST API. Is there any workaround for this if it can submit execution without the execution set defined?
-
Plan Execution: Not Clear on this.
-
Any other approach for submit run: TBD based on Subject 7 Development Design
- Get Test Cloud Run Results
-
Get Results for Execution Set Run: It should be currently supported.
-
Get Results for Test Case Independent Run: Based on my test, It is NOT working by REST API. Is there any workaround for this if we can use some REST API to get run results if it is submitted without an execution set defined?
-
Plan Execution: Not Clear on this.
-
Additional Functionalities if possible to support:
- Is that possible to import or update Data Set data content via REST API?
- Is that possible to define the Execution Set details via REST API?
- Is that possible to get the lists of Test Run instances or Execution Set Run instances (containing the given Data Set Name) by the only provided the given Data Set Name as JSON request or input query parameter? (or by a Search of Data Set Name (not Data Template Id or Name) to return the related information where the Data Set Name is associated such as Data Template Id, Test Run Instance Lists, etc.)
BTW, is there any integration sample or solution if Subject-7 has built-in options or supported integration with other Test Management Tools, such as JIRA/TestFLO, etc?
It would be very appreciated if any of the Subject-7 Development Team can provide some feedback on the above questions. I'm looking forward to your reply.
Have a good day!
Thanks,
Saxon SI