As like we pass the browser name and other details from command prompt in codecetion, can we pass any variable which can be used within the script from command prompt?
-
Could you be more specific?Alexander– Alexander2015-03-25 08:17:44 +00:00Commented Mar 25, 2015 at 8:17
-
agreed with @Alexander : please revisit the question and elaborate further on it, with specific examples and use cases.Mr Peach– Mr Peach2015-03-30 13:17:24 +00:00Commented Mar 30, 2015 at 13:17
Add a comment
|
2 Answers
I didn't find any way to do it in documentation and other feeds.
I add pull request for this ability use params from console in tests
When it will be merged in master you can run tests like this:
php codecept run -p "site-id: 123456, group: admin" -p "duty: free"
You can find more information in PR.