Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to pass suites dynamically? #25

Open
yuxli066 opened this issue Feb 12, 2021 · 2 comments
Open

How to pass suites dynamically? #25

yuxli066 opened this issue Feb 12, 2021 · 2 comments

Comments

@yuxli066
Copy link

I was wondering if I can dynamically pass the suite name into the wdio service array here:

image

I am using browser stack to execute all of my visual regression tests in order to get multiple devices support. What I want to do is I want to pass the device name into the suite name as well so that when I am on the Spectre dashboard I can see the device that all of my current tests ran on. Is there any way for me to do that?

@Jnegrier
Copy link
Owner

Hi @yuxli066 that's not currently possible with the config, but seems like something interesting to implement.

In the connector for Spectre we are using a test object, as far as I remember, this object contains the name of the suite, so it should be easy to concatenate it, I'm not that sure about device tho...

Would you expect to have tests with a name like <device> <suite> <test>?

@yuxli066
Copy link
Author

yuxli066 commented Feb 12, 2021

Yea that's the end goal, because right now the main concern for me is the view of my page on multiple devices, and from what I've seen on spectre so far, the device that we are using isn't clearly being displayed. It only shows "chrome mobile" or "safari", not "chrome mobile on tablet" or "chrome mobile on samsung galaxy s8", which is the device that I had configured in BrowserStack.

image
image

Also, @Jnegrier , how would I be able to access the test object? I tried and that didn't seem to work for me either.

Hi @yuxli066 that's not currently possible with the config, but seems like something interesting to implement.

In the connector for Spectre we are using a test object, as far as I remember, this object contains the name of the suite, so it should be easy to concatenate it, I'm not that sure about device tho...

Would you expect to have tests with a name like <device> <suite> <test>?

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

No branches or pull requests

2 participants