Skip to content

Can change the variables' names as I prefer? #2110

Answered by mdmintz
chenhaijun02 asked this question in Q&A
Discussion options

You must be logged in to vote

Use --variables=DICT to pass in custom variables.

Eg: pytest --variables='{"MY_VAR":"abc", "VAR123":123}'

[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'

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants