version one api to get the Test case details using Test Case ID
http://Your_Version_ONE_URI/rest-1.v1/Data/Test?where=Number="AT-57708"
Where, Your_Version_ONE_URI looks like below :
--> https://www3.v1host.com/DieHardTechy
NOTE:
- To call the above api from postman you need to use basic authentication with your version one username and password.
- If AT-57708 id exists in Version one , Above API gives the XML response containing details about that Test case.
Sample response :
<?xml version="1.0" encoding="UTF-8"?> <Assets total="1" pageSize="2147483647" pageStart="0"> <Asset href="/DieHardTechy/rest-1.v1/Data/Test/1215543" id="Test:1215543"> <Attribute name="AssetType">Test</Attribute> <Relation name="GeneratedFrom" /> <Relation name="SecurityScope"> <Asset href="/DieHardTechy/rest-1.v1/Data/Scope/8686" idref="Scope:8686" /> </Relation> <Relation name="Super" /> <Relation name="Team" /> <Relation name="Parent"> <Asset href="/DieHardTechy/rest-1.v1/Data/Story/408352" idref="Story:408352" /> </Relation> <Relation name="Status" /> <Relation name="Category"> <Asset href="/DieHardTechy/rest-1.v1/Data/TestCategory/116" idref="TestCategory:116" /> </Relation> <Relation name="Timebox" /> <Relation name="Scope"> <Asset href="/DieHardTechy/rest-1.v1/Data/Scope/8686" idref="Scope:8686" /> </Relation> <Attribute name="Number">AT-57708</Attribute> <Attribute name="VersionTested" /> <Attribute name="ActualResults" /> <Attribute name="ExpectedResults">This is expected result</Attribute> <Attribute name="Steps">Subscribe to die hardtechy blog</Attribute> <Attribute name="Order">1077139536</Attribute> <Attribute name="Description">Call GET API without passing any Parameter</Attribute> <Attribute name="Name">Subscribe</Attribute> <Attribute name="AssetState">64</Attribute> <Attribute name="SecurityScope.Name">DieHardTechy API</Attribute> <Attribute name="Parent.Name">Regression Test Cases</Attribute> <Attribute name="Parent.Number">B-09384</Attribute> <Attribute name="Status.Name" /> <Attribute name="Category.Name">Functional</Attribute> <Attribute name="Timebox.Name" /> <Attribute name="Scope.Name">DieHardTechy API</Attribute> <Attribute name="TaggedWith"> <Value>SANITY</Value> </Attribute> <Attribute name="Ideas" /> <Relation name="Owners"> <Asset href="/DieHardTechy/rest-1.v1/Data/Member/153428" idref="Member:153428" /> </Relation> <Attribute name="Owners.Name"> <Value>xyz abc</Value> </Attribute> <Attribute name="Owners.Nickname"> <Value>xyz</Value> </Attribute> </Asset> </Assets>
No comments:
Post a Comment