You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a couple of test suites in the form of .robot files. Each test of each of the test suites has a Teardown_w_screenshot as [Teardown] in which I'm taking a screenshot and want to embed it using the Builtin.Log keyword:
Teardown_w_screenshot
[Documentation]
... Take a screenshot and embed it into the log for debugging purposes
${screenshot_path}= Take Screenshot return_as=path_string
${relative_path}= Set Variable ${screenshot_path.replace('/tmp/RobotFramework/', '')}
Log <img src="${relative_path}"> html=yes
Close Browser
The results are stored in a RobotFramework directory which has a top-level log.html, report.html and output.xml and a directory for each of the test suited (for example: test-onboarding). In these test suite directories i have individual log.html, report.html and output.xml files and also /browse/screenshot/ directory which contains all the images created.
The image exists, the relative path is correct (if i manually edit the HTML and put the resulting tag it works), but no is inserted in the log. What may cause the issue?
The text was updated successfully, but these errors were encountered:
I have a couple of test suites in the form of .robot files. Each test of each of the test suites has a Teardown_w_screenshot as [Teardown] in which I'm taking a screenshot and want to embed it using the Builtin.Log keyword:
The results are stored in a RobotFramework directory which has a top-level log.html, report.html and output.xml and a directory for each of the test suited (for example: test-onboarding). In these test suite directories i have individual log.html, report.html and output.xml files and also /browse/screenshot/ directory which contains all the images created.
The image exists, the relative path is correct (if i manually edit the HTML and put the resulting tag it works), but no is inserted in the log. What may cause the issue?
The text was updated successfully, but these errors were encountered: