Extra Test data
#2810
-
Hello @mdmintz I tried to create my own customized parameter name, similar to the extra test data accessed with 'self.var2' and '--var2' in the test parameters. However, whenever I update SeleniumBase, my customized extra test data with the parameter is removed. How can I update SeleniumBase without my customized parameter being removed? Thank you very much! |
Beta Was this translation helpful? Give feedback.
Answered by
Jeremy-QA
Jun 4, 2024
Replies: 1 comment 2 replies
-
Duplicate of #2110 (comment) Use Eg: [1] > HOME/SeleniumBase/examples/test_null.py(7)
.
6 def test_null(self):
7 -> pass
(Pdb+) self.variables
{'MY_VAR': 'abc', 'VAR123': 123}
(Pdb+) self.variables["MY_VAR"]
'abc' |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i think i got it @mdmintz and its working :)
pytest .\practice.py --variables="{'device':'ios'}" -s
The device is: ios