How to associate "Test Iterations" in Visual studio to test iterations in Azure test plans

Zaher Nordin 20 Reputation points
2024-08-14T09:33:04.0066667+00:00

I'm running a test automation repository with test written in SpecFlow running nUnit on Visual Studio. Some of the test scenarios running a table of test parameters generating many test cases per test scenario. In Visual Studio the test cases are listed in "Test Explorer" and each test case carry a title that include all test parameters for each iteration, which makes is very long title. For example: "Security_ScreensFeature._01_NotLoggedIn_NoAccessWhenUsingShowScreenActionConnectedToObjectForScreenWithSecurity("Security_Alias_Modal_Popup_with_security_1","btnShowModalAliasPopupWithSecurity_Admin",null)"

Problem 1:

When trying to associate test cases in visual studio to test cases in Azure Test Plans, sometimes the title is too long to handle, and Azure refuses the association since the title is longer than 256 characters. I can't shorten the title by shortening the test input parameters since the same parameter is used in the product I'm testing, and changing it will break the test environment. Is there any solution to this problem?

Problem 2:

In Azure Test Plans I can create test Iterations by using "test parameters" but it is not possible to associate these test iterations to the test iterations in Visual Studios Test Explorer. In VS each iteration is a "test case" and can be associated to a "Test Case" in Azure, not to a test iteration. That means I cannot use test parameters and need to create a separate test case for each iteration in Azure to be able to associate it to the test cases (iterations) in Visual Studio. Having test scenarios with 30 iterations each will make my work in Azure Test Plans 30 times bigger. Is there a way around this problem?

Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
352 questions
0 comments No comments
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 31,956 Reputation points Microsoft Vendor
    2024-08-15T03:33:49.5866667+00:00

    Hello @Zaher Nordin ,

    Thank you for taking time to post this issue in Microsoft Q&A forum.

    About the problem 1, the 256 characters limitation should be a normal limitation. I don’t think you can avoid or workaround this limitation, as it’s a limitation. I knew that you can’t shorten the title, but I’m afraid, shorten the title may be the best way to fix this issue.

    As you are using Azure DevOps(Azure Test Plans), I would suggest also ask this question here: Developer Community – Azure DevOps(Azure DevOps is currently not supported in the Microsoft Q&A forums).

    Regards,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.