cancel
Showing results for 
Search instead for 
Did you mean: 

CrossBrowserTesting jenkins plugin strips query parameters from screenshot tests URL

SOLVED
sppetrov
New Contributor

CrossBrowserTesting jenkins plugin strips query parameters from screenshot tests URL

Hi there, 

I'm trying to run Screenshots Tests through Jenkins. 

The URL I want to test contains some query parameters - e.g: https://example.com?param=test&p=123&year=2021

The problem is that for some reason the plugin strips the original URL and sends only the first parameter to CrossBrowserTesting... i.e. in the example URL from above the screenshot tests are executed against https://example.com?param=test (i.e. the "p" and "year" parameters are missing)

I tried to workaround the issue by using parameterized build, but it looks like the plugin does not allow parameters... 

Can you please help? Any workaround?

Thanks, 

Stoyan

1 ACCEPTED SOLUTION

Accepted Solutions
sppetrov
New Contributor

Re: CrossBrowserTesting jenkins plugin strips query parameters from screenshot tests URL

I found a solution - I just URL encoded my url and it worked fine - i.e. for the example above I passed: https%3A%2F%2Fexample.com%3Fparam%3Dtest%26p%3D123%26year%3D2021 to the plugin... 

 

Thanks, 

Stoyan

View solution in original post

1 REPLY 1
sppetrov
New Contributor

Re: CrossBrowserTesting jenkins plugin strips query parameters from screenshot tests URL

I found a solution - I just URL encoded my url and it worked fine - i.e. for the example above I passed: https%3A%2F%2Fexample.com%3Fparam%3Dtest%26p%3D123%26year%3D2021 to the plugin... 

 

Thanks, 

Stoyan

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements