Passing a variable in code through the command line

How do we pass the browser name and other data from the command line in the codec, can we pass any variable that can be used in the command line script?

+4
source share
1 answer

I did not find any way to do this in the documentation and other channels.

I add traction request for this ability to use parameters from the console in tests

When it is merged into master, you can run the tests as follows:

php codecept run -p "site-id: 123456, group: admin" -p "duty: free"

You can find more information in PR.

+1
source

All Articles