SeleniumHQ / selenium-ide

Open Source record and playback test automation for the web.
https://selenium.dev/selenium-ide/
Apache License 2.0
2.83k stars 768 forks source link

Passing Store Text value to the next test case is not working in Selenium side runner #1802

Open T1g3rs04T1g3rs04 opened 7 months ago

T1g3rs04T1g3rs04 commented 7 months ago

💬 Questions and Help

I have a side test suite made up of multiple test cases. In one test case I upload a file and get the file id. I use Store Text to save the file id value into a variable. I use that variable in the next test case Here is an example: 1st test case image

2nd test case image

If I run via Selenium GUI I get the file ID ie 209 from 1st Test case and it updates test case 2 as 209. But if I run via Selenium side Runner I get the variable ${DataFileID}. I have looked through your reported issues and I can see this issue is similar https://github.com/SeleniumHQ/selenium-ide/issues/1735 I have updated to the latest Selenium and I also ran the suggested npm i selenium-side-runner@latest, both completed successfully but my issue remains. Any suggestions?

Please note that this issue tracker is not a help form and this issue will be closed.

For questions or help please see:

akashg94 commented 1 month ago

I am having the same issue. I have updated to the latest. But still having this issue. Have you able to find any solution so far?

akashg94 commented 1 month ago

@toddtarsi please advise on this issue?

toddtarsi commented 1 month ago

@akashg94 - In this case, I'd recommend using the run command to run the step as a child of the other test. Variables are commonly persisted across boundaries this way. The other option is I think turning on persist session on the suite itself, but that has more side effects.

AlphonseProffit commented 1 month ago

@akashg94 - In this case, I'd recommend using the run command to run the step as a child of the other test. Variables are commonly persisted across boundaries this way. The other option is I think turning on persist session on the suite itself, but that has more side effects.

1856 : Persist sesssion doesn't work ...

Do you have a sample with the command "run" ? I don't see how to use it ... thanks