Forum Discussion
nobody any idea?
has nobody ever had to extend an existing test to being a cross-browser test?
Best regards,
Joachim
Hi,
As a quick idea:
-- Put screenshots into the subfolders below the parent root (e.g.: Images\Chrome\, Images\IE11\, Images\Edge\);
-- At the beginning of the test, identify the browser and compose the correct path to screenshots (store the path in some (temporary project) variable);
-- Use this variable to reference the screenshot.
Does this help?
- jsc9 years agoRegular Contributor
Hi Alex,
I think I did not get how I should do this.
We are using keyword tests and, as far as I see, I have a problem that I cannot compose the path or name to a picture through a variable, I just can select an image from the store.
Or am I missing something?
I had some other ideas how to make this work. But all of them break at least at a workflow to update pictures when I have to because of changes to the layout.
Best regards,
Joachim
- jsc9 years agoRegular Contributor
no other idea regarding the screenshot-problem?
Is the some event fired at the start of a checkpoint? (not after passing it)
any suggestions or ideas welcome. I am open to all options as long as they work properly.
I just tested and our test really runs in all browsers, I just have to set the browser-parameter.
Somehow solving the screenshot-problem would be so huge!
Best regards,
Joachim
- jsc9 years agoRegular Contributor
As for now the best idea, that I will at least try is to manipulate the *.mds file of each project.
<Node name="item data">
<Prp name="relpath" type="S" value="Stores\Stores.tcStores"/>
</Node>I will copy the complete \Stores-folder to
- \StoresIE
- \StoresChrome
and before the start of a test I will change the mds-files to
- <Prp name="relpath" type="S" value="StoresIE\Stores.tcStores"/> or
- <Prp name="relpath" type="S" value="StoresChrome\Stores.tcStores"/>
depending on the browser the test has to run with.
This is not perfect, but the best for now.
1. executing complete nightly tests works perfectly fine
2. executing some tests locally might be a bit laborious
3. updating changed screenshots works ok (but 2. affects this)
not perfect, but worth a shot.
Related Content
Recent Discussions
- 23 hours agodhundley