Forum Discussion

sppetrov's avatar
sppetrov
New Contributor
4 years ago
Solved

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

  • 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

1 Reply

Replies have been turned off for this discussion
  • sppetrov's avatar
    sppetrov
    New Contributor

    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