Skip to content

How do I access the current test object before a session is created #836

Description

@prashantsail

What are you trying to achieve?

  1. I am using webdriverio(helper)+browserstack for test execution.
  2. Before start of every testcase, using a container object I want to modify the desiredCapabilities.name with the actual Scenario title.
  3. This modification has to happen before a session is created for the testcase execution.

What do you get instead?

I have tried using :

  1. event.test.before
    . The session is not created yet.
    . But I don't have access to the current test object.

  2. 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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions