Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Ability to customize Test File Name Template #737

Closed
gaiquelsf opened this issue Oct 9, 2018 · 8 comments
Closed

Ability to customize Test File Name Template #737

gaiquelsf opened this issue Oct 9, 2018 · 8 comments

Comments

@gaiquelsf
Copy link
Contributor

We started using Zalenium to run our automated test suites, and it is a great tool.

However we found that it is not possible to get video and log file name from our tests code because it contains a timestamp. Since we store the test result on a database within the logs and the recording video, we need to know what file name will be created.

Thoughts on adding a new capability where "test file name template" can be customized? This will allow to set video and log file names as necessary.

Thank you all about any suggestion here.

Best regards

@gaiquelsf
Copy link
Contributor Author

#738 PR has been opened

diemol pushed a commit that referenced this issue Oct 10, 2018
* Ability to customize Test File Name Template #737

This feature will allow to customize "test file name template" adding a new capability to the browser named "testFileNameTemplate".

How this works?

Template accepts variables like:
{proxyName} - Zalenium|SauceLabs|BrowserStack
{testName} - The one added as "name" on capabilities, otherwise a session key
{browser} - The browser name
{platform} - OS where test runs
{timestamp} - Timestamp of test inizialitation
{testStatus} - Test result: COMPLETED|TIMEOUT|SUCCESS|FAILED

You can add a string to the capability adding static text and any of the variables above mentioned.

Default template:
{proxyName}_{testName}_{browser}_{platform}_{timestamp}_{testStatus}

* Documentation added for new feature: Ability to customize Test File Name Template
@diemol
Copy link
Contributor

diemol commented Oct 10, 2018

Closed via #738, thanks @gaiquelsf!

@diemol diemol closed this as completed Oct 10, 2018
@gaiquelsf
Copy link
Contributor Author

@diemol I saw on Zalenium home page that break lines didn't work on the .md documentation file, should I add
html break lines?

@diemol
Copy link
Contributor

diemol commented Oct 10, 2018

Ah yes, with this template one needs to add <br> explicitly for a line break. If you want to you can send a PR for that, thanks!

@gaiquelsf
Copy link
Contributor Author

Hi @diemol, I saw on releases page that two new features were added, which one of them is this one (#737), thank you again for accept them.
Anyway, we updated our Zalenium server and this feature is not working, so I checked the code under 3.14.0e release tag and the changes for this feature are not there. I.e.: file without new code
Can you check if something went wrong on merging or while releasing the new version?
Thank you and best regards

@diemol
Copy link
Contributor

diemol commented Oct 19, 2018

Oh sorry! Seems I screwed up, I will release again :)

@diemol
Copy link
Contributor

diemol commented Oct 19, 2018

https://github.com/zalando/zalenium/releases/tag/3.14.0f

@gaiquelsf
Copy link
Contributor Author

Great, thanks @diemol, I've just tested and now it works

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

2 participants