zalando / zalenium

A flexible and scalable container based Selenium Grid with video recording, live preview, basic auth & dashboard.
https://opensource.zalando.com/zalenium/
Other
2.39k stars 574 forks source link

testFileNameTemplate and cookie injection is not working when using browserstack #1195

Closed hemanthsridhar closed 4 years ago

hemanthsridhar commented 4 years ago

🐛 Bug Report

Steps

Adding when running with browserstack with the below capability dc.setCapability("testFileNameTemplate", "{testName}")

it does not work. the testFileNameTemplate is still "testFileNameTemplate": "{proxyName}_{testName}_{browser}_{platform}_{timestamp}_{testStatus}"

The below code does not working either.

Cookie nameCookie = new Cookie("zaleniumTestName", new RandomStringUtils().randomAlphanumeric(20))
Cookie startCookie = new Cookie("zaleniumVideo", "true")
Cookie stopCookie = new Cookie("zaleniumVideo", "false")
getDriver().manage().addCookie(nameCookie)
getDriver().manage().addCookie(startCookie)
getDriver().manage().addCookie(stopCookie)

OS: OSX Zalenium Image Version(s): latest Docker version: 19

diemol commented 4 years ago

Those capabilities only work with tests running locally, not in any of the cloud integrations.