Behave-headless
Behave-headless copied to clipboard
Run browser in headless mode in Behave on LambdaTest. A sample repo to help you run browser in headless mode in Behave on LambdaTest. Run your automation test scripts in Behave on Lambdatest.
How to run browser in headless mode in Behave on LambdaTest
If you want to run a browser in headless mode for an automation test in Behave on Lambdatest, you can use the following steps. You can refer to sample test repo here.
Steps:
You can run a test in headless mode by providing it as a capability in config.json
file. The config.json
would look something like this:
[
{
"platform": "Windows 10",
"browserName": "chrome",
"version": "latest",
"build": "Behave Selenium Sample",
"name": "Behave Sample Test",
"headless" : True
}
]
- Full documentation for configuration Behave.
Run your test
Running tests through local (linux/unix)
paver run
###Running tests through local (windows)
behave features/test.feature
Running tests through jenkins
paver run jenkins