TestProject Forum

Browserstack running tests via agent cli

Hello

We have connected our Browserstack account to TestProject and are able to run tests on Browserstack via the UI, but i’m not sure how to run them with the testproject-agent cli.
I’ve tried something like this ./testproject-agent run -d BROWSERSTACK --browser=SAFARI test.yaml, but it doesnt seem to work, all steps end up skipped. Any example on how to run this ?

Thanks

not implemented yet in the cli tool, but you can use the TestProject API to trigger execution on browser stack via CMD. Create a job that should run XX tests on BS with your local agent or virtual agent, then create the curl command by using the following api TestProject API v2

Example

curl -X POST “https://api.testproject.io/v2/projects/[YourProjectID]/jobs/[YourJobID]/run” -H “accept: application/json” -H “Authorization: [Your API Key]” -H “Content-Type: application/json” -d “{}”