Forum Discussion
i'm trying a create a defect and getting an error. Server Error in '/rest-api' Application
https://qacomplete.smartbear.com/rest-api/service/api/v2/projects/{ProjectId}/tests/defects
Can you explian what you are task are you trying to perform using the API.
1. Creating Defects
2. Created Test cases
3. Updating the status of the test instances
- salley7 years agoFrequent Contributor
Hi,
i'm trying to create defect.
ex:body
{
"Title": "Error Finding Locations",
"Status": "New",
"Description": "System is throwing an error searching for the location ."
}- vikasn7 years agoOccasional Contributor
Follow the below steps to setup the script in Postman and you should be able to create a defect using the API's
Step 1
URI - https://qacomplete.smartbear.com/rest-api/service/api/v1/projects/{ProjectId}/defectsReplace project id. You can find the project Id in the QAComplete URL
Step 2 - Authorization Tab
Authorization
Select Type - Basic Auth
Enter your QAComplete - Username & PasswordStep 3 - Header Tab
Key - Content-Type
Value - application/jsonStep 4 - Body Tab
Select option raw (Radio button)
Set the Request Payload in the Body tab
{
"Title": "SAMPLE TITLE 1",
"Status": "In Progress",
"Description": "Test Desc"
}Step 5
Save and click on Send button, Defects will be created in QAComplete.- salley7 years agoFrequent Contributor
i did everything as described, and same thing , getting 404 status. i'm able to get response from the tests folder. but unable to post defects,,,