What are you trying to achieve?
- I am using webdriverio(helper)+browserstack for test execution.
- Before start of every testcase, using a container object I want to modify the desiredCapabilities.name with the actual Scenario title.
- This modification has to happen before a session is created for the testcase execution.
What do you get instead?
I have tried using :
-
event.test.before
. The session is not created yet.
. But I don't have access to the current test object.
-
event.test.started(test)
. I have access to the current test object.
. But the session is already created and there is no use modifying the config now.
Details
- CodeceptJS version: 1.0..3
- NodeJS Version: 6.12.0
- Operating System: CentOS Linux release 7.4.1708 (Core)
- WebDriverIO 4.9.11
- Configuration file:
Is there any other way/event using which I can achieve this ?
What are you trying to achieve?
What do you get instead?
I have tried using :
event.test.before
. The session is not created yet.
. But I don't have access to the current test object.
event.test.started(test)
. I have access to the current test object.
. But the session is already created and there is no use modifying the config now.
Details
Is there any other way/event using which I can achieve this ?