Open hxtreme99 opened 3 years ago
PS: I'm using a self-hosted version of ADO (if that matters) and using Nunit runner
@hxtreme99 - Could you paste a screenshot of how they would appear in AzDevOps (Test-Case > Automation fields tab) if you manually "Associate test-case" from Visual Studio? (PS: I'm having some issue with VS in doing so)
EDITING since I messed up my explanation. @vamsitp
So, manually associating the Test Case:
This is the aspect in ADO:
The difference when it automatically links is that it does not pass like ("0","0","0",null) but just the general one:
And in order for the automation to work, I would need 3 entries that associate with the 3 "AddTwoNumbersPermutations".
NOTE: That last part is for the tags, like this example: So instead of (... , null) it would have 3 w/ (... , "eita") and 3 more w/ (... , "nein")
Notes
ScenarioOutlineExamplesInline=true
to create multiple Test-cases by defaultHey :)
Nice!
Yes, for example: In this case, this Scenario Outline has an Example with 3 lines so at the Scenario Outline level we could have @testcase=30540 (for 0) @testcase=30541 (for -1) and @testcase=30542 (for 6). Of course, this logic will only be applied with "ScenarioOutlineExamplesInline=true". This way it will assign a test automation per "@testcase=" which is what is need for ADO to run them in the Pipelines.
For multiple examples, it will only matter if they have different "@". If they don't have distinct "@" they be dealt has one long "Examples" even if they are divided, for example: Which translated to the test explorer has: (it even detected duplication)
But if we have distinct "@" like: this translates has: and now duplication is allowed
Hope to have been able to answer to everything :)
Yeah, thx 🙂, I was just taking some notes (for later reference) when I start looking into it. A little busy at the moment, so shall try and check it in a couple of weeks...
Hi, I'm trying to create a test case for each iteration of my scenario but I can't get it, I've set ScenarioOutlineExamplesInline:true to Spex.json and all it does is use my example values in each step of the test case. Help please, I'm using version 1.2.0 @vamsitp @hxtreme99
At the moment there isn't a way/option to separate the scenarios. Like this:
In my case, this would help a lot, since at the moment it creates a unique case and not 3 individual cases. I want to have them separated because of automation in the Release Pipeline.
When separating you will need to pass for the automation link, e.g., ("0","0","0","null"). If you don't pass the "null" it will not work -> auto-discover.