Are you encountering an error message in AzureDevOps .NET API that says "TestPointId, testCaseId, testCaseRevision, testCaseTitle must be specified for planned test results"? Don't worry, we're here to help you understand and resolve this issue.
This error message typically occurs when you are trying to create planned test results using the AzureDevOps .NET API, but some required parameters are missing. The API expects you to provide the TestPointId, testCaseId, testCaseRevision, and testCaseTitle values for the planned test results, and if any of these are missing, you will encounter this error.
To better understand this error, let's dive into each of these parameters:
TestPointId
The TestPointId is a unique identifier for a specific test point within a test plan. It represents a specific configuration of a test case that needs to be executed. You can find the TestPointId by navigating to your test plan in AzureDevOps and selecting the specific test case configuration you want to run.
testCaseId
The testCaseId is the unique identifier for a test case in AzureDevOps. It represents a specific test case that you want to run. You can find the testCaseId by navigating to your test plan in AzureDevOps and selecting the specific test case you want to run.
testCaseRevision
The testCaseRevision represents the version or revision number of a test case. It helps AzureDevOps keep track of changes made to a test case over time. You can find the testCaseRevision by navigating to your test plan in AzureDevOps and selecting the specific test case you want to run.
testCaseTitle
The testCaseTitle is the name or title of a test case. It helps identify the purpose or objective of the test case. You can find the testCaseTitle by navigating to your test plan in AzureDevOps and selecting the specific test case you want to run.
Now that we have a better understanding of these parameters, let's look at how to resolve the error.
Resolving the Error
To resolve the "TestPointId, testCaseId, testCaseRevision, testCaseTitle must be specified for planned test results" error, you need to ensure that you provide the correct values for each of the required parameters when creating planned test results using the AzureDevOps .NET API.
Here's an example of how you can provide these values:
var testPointId = 12345;
var testCaseId = 54321;
var testCaseRevision = 2;
var testCaseTitle = "My Test Case";
var plannedTestResult = new PlannedTestResult()
{
TestPointId = testPointId,
TestCaseId = testCaseId,
TestCaseRevision = testCaseRevision,
TestCaseTitle = testCaseTitle,
// Other properties
};
// Call the API to create planned test results
Make sure to replace the placeholder values (e.g., 12345, 54321, 2, "My Test Case") with the actual values for your test case configuration.
By providing the correct values for TestPointId, testCaseId, testCaseRevision, and testCaseTitle, you should be able to create planned test results without encountering the error.
If you are still experiencing the error even after providing the correct values, double-check that you are using the latest version of the AzureDevOps .NET API and that your API calls are properly authenticated.
If you need further assistance, don't hesitate to reach out to the AzureDevOps support team for help. They will be able to guide you through the troubleshooting process and help you resolve the error.
We hope this article has helped you understand and resolve the "TestPointId, testCaseId, testCaseRevision, testCaseTitle must be specified for planned test results" error in AzureDevOps .NET API. Remember to always provide the required parameters when creating planned test results, and double-check your values to avoid encountering this error.
References
| Source | Link |
|---|---|
| AzureDevOps Documentation | https://docs.microsoft.com/en-us/rest/api/azure/devops/test/plans?view=azure-devops-rest-6.1 |
| AzureDevOps Support | https://azure.microsoft.com/en-us/support/ |