A change in feature file with Living Doc is not applied after the commit
AnsweredHi,
See bellow my feature file with Scenario Outline and the data used in the examples.
I ran the test from a Azure Pipeline and the test open the web site and loop inside with the different value of login/mdp describes in the example part.
In the Azure SpecFlow+ Living Doc, I Open Editor and I modified a value for the login in the Examples part.
I commit and the pipeline ran.
But the new value for the login was not used and the initial value was used.
The test is in status "Others" for the value updated because this value was not used.
How can we apply the change in the feature file in the execution after the commit in Azure?
Scenario Outline: Login to the Bdd application
Given the connection page is displayed
When I type a <login> in Login field
When I type a <MdP> in MdP field
When the button Connected is clicked
Then the Welcome page is displayed
Examples:
|login|MdP|
|Admin|ABCD|
|reader|null"|
-
If you don't see Living Doc updated it can have multiple reasons:
- the pipeline was not building the branch what you have modified -> you need to queue a pipeline for the correct branch
- the pipeline building the correct branch but it did not contain the livingdoc build task -> the correct pipeline needs to be queued with which contains the build task
- the pipeline is failing because of your change -> check the logs for errors and after the fix requeue the pipeline
0 -
thanks, Viktor for the help. I will move the request to the General community forum since it is not related to new feature requests.
0 -
Thanks for your feeback.
Like I edit the feature since "Open Editor" function in Specflow+ Living Doc, I changed the login "reader" by "writer" with the "Open Editor" After that I commited and the pipeline ran with the correct branch.
If I check the log of the Test build task, I saw:
Scenario: Login to the PocBdd application, reader in Connection -> Failed on thread
"reader" is the intial value and I changed by "writer" with the "Open Editor".
If I go Overview/Specflow+ Living Doc I can see the result and the value changed "writer" have the status "Others"
0 -
If I understand well: it seems that the tests are executed based on the old feature file content, while LivingDoc is generated from the new feature file content. Is it possible that the pipeline in question does not rebuild the SpecFlow project and hence it still executes a previously generated test code?
0 -
Yes you understand well, it seems living doc take the new feature file but not the build test task.
0 -
Hello,
I changed the yml file and I ran the test directly with the dotnet command.
That compile with the new feature file.
Thats works fine now.
Thanks for your feedback.
0
Please sign in to leave a comment.
Comments
6 comments