Closed prashantsssh closed 2 months ago
Hi @prashantsssh - It's hard to glean information off of images. Could you please upload in the form of a git repo or a failing test to a repository
Hi @prashantsssh - It's hard to glean information off of images. Could you please upload in the form of a git repo or a failing test to a repository
@luke-hill I have updated my question with sample code so that you can reproduce it. Please have a look.
I don't see anything failing in your code execution. Again if you could ideally show us in the form of a failing test or a git repo? It sounds like you are seeing something you're not expecting.
Could you also strip down as much redundant information as possible. see SSCCE.org for information
Closing due to inactivity
👓 What did you see?
Expected token value for the same step that is getting executed for the second time in the same scenario is different from the expected value. Basically the token value stored during the execution of first step is displayed while execution of same step for the second time.
✅ What did you expect to see?
During execution, for each step fresh token value should be fetched whether the step or token value is same or not.
📦 Which tool/library version are you using?
Ruby-3.2.1 Cucumber-8.0 watir-7.6
🔬 How could we reproduce it?
Create a feature file. File name-test.feature
Create a parametertype class where we have to put the required token. File name-parameter_types.rb
You can execute the feature with the command-->
bundle exec cucumber -t @token
,📚 Any additional context?
As per my opinion, the value of token is stored every time when the operation is performed and if the value of the passed token is same in the second step also then it will display the same value. However if the value of token is different in both steps, then it will work properly. Console outupt-
When the step
When I should see desired message as 'This goal is scored by PLAYER1.'
is called again, then the parameter_types transformer (msg), should haveThis goal is scored by PLAYER1.
But the actual message is fetched from the previous step.QUESTION- Is that how supposed to work or is it a bug??