Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Export Config: BeforeLaunch: How to get current spec file name? #4898

Open
amedvedjev opened this issue Jul 23, 2018 · 3 comments
Open

Export Config: BeforeLaunch: How to get current spec file name? #4898

amedvedjev opened this issue Jul 23, 2018 · 3 comments

Comments

@amedvedjev
Copy link

amedvedjev commented Jul 23, 2018

we run multiple tests by some search pattern.

How to get current going to run spec file in 'beforeLaunch' of 'export.config' ?

it is logging by protractor here:

[chrome #1-0] Specs: C:\Users....\node_modules....js

but i can not get it programmatically. Is there any way?

100 thanks in advance

@laflaneuse
Copy link

+1

1 similar comment
@PauloGoncalvesBH
Copy link

+1

@ajitesh11
Copy link

In case if you have not found solution you can use below snippet to get current specs name

onPrepare: async () => {
await browser.getProcessedConfig().then((config) => {
console.log(config.specs[0])
})

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants