Your Privacy
We use cookies to give you a better experience in Alchemy Help Center
You can learn more about what kind of cookies we use, why, and how from our Privacy Policy. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings in our cookie banner to change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer. For more details, check out our Privacy Policy link below.
View Privacy Policy
Strictly Necessary Cookies
These cookies are necessary for the website to function and cannot be switched off in our systems, but do not store any person information. They are usually set in response to your actions that triggers a request for services, such as setting your privacy preferences, logging in or filling forms. You can change your browser settings to alert you about these cookies, but some parts of the Website may not work.
View Cookies
I generated the suite executable and ran it through the command prompt, but the suite execution failed because one test in the suite did not pass. I got a screenshot in the HTML report showing exactly where the test failed, but I cannot see a timestamp on the screenshot indicating the date and time. How can I add a timestamp to the screenshot? Is there a way to do this in Alchemy?
0 Votes
TheBugScout posted 2 months ago Best Answer
In Alchemy, the captured screenshots do not include a timestamp by default. However, you can add a timestamp to a screenshot by using the Alchemy Image Writer Integration. Here’s how you can do it:
Steps to Add a Timestamp to a Screenshot in Alchemy:
1. Go to the integration section in Alchemy and add the Alchemy Image Writer Integration.
2. Once the integration is added, you can customize properties like font name, font size, and style (e.g., bold or italic).
3. To include a timestamp on the screenshot, use the {{TIMESTAMP}} token in the text field. If you want to add a tag instead, use the {{TAG}} token. You can also use both {{TAG}} and {{TIMESTAMP}} together in the text field if needed.
(In the situation above, since you only need a timestamp, you can use the {{TIMESAMP}} token with the text as shown in the screenshot below, the text is not mandatory, you can just include the token {{TIMESTAMP}} and skip the text If you don't want it. )
6. You can change the background color of the text by specifying the desired color. This change will only take effect if the "background" checkbox is selected. By default, the background color is #FFFFFFCC (white with 80% opacity or 20% transparency). You can choose the background color according to your needs.
7. After configuring the settings, save your changes and generate the executable. Then, run the .jar file through the command prompt.
By following these steps, you can add timestamps and tags to screenshots in Alchemy, making them more informative and useful for debugging and reporting.
0 Votes
1 Comments
TheBugScout posted 2 months ago Answer
In Alchemy, the captured screenshots do not include a timestamp by default. However, you can add a timestamp to a screenshot by using the Alchemy Image Writer Integration. Here’s how you can do it:
Steps to Add a Timestamp to a Screenshot in Alchemy:
1. Go to the integration section in Alchemy and add the Alchemy Image Writer Integration.
2. Once the integration is added, you can customize properties like font name, font size, and style (e.g., bold or italic).
3. To include a timestamp on the screenshot, use the {{TIMESTAMP}} token in the text field. If you want to add a tag instead, use the {{TAG}} token. You can also use both {{TAG}} and {{TIMESTAMP}} together in the text field if needed.
(In the situation above, since you only need a timestamp, you can use the {{TIMESAMP}} token with the text as shown in the screenshot below, the text is not mandatory, you can just include the token {{TIMESTAMP}} and skip the text If you don't want it. )
6. You can change the background color of the text by specifying the desired color. This change will only take effect if the "background" checkbox is selected. By default, the background color is #FFFFFFCC (white with 80% opacity or 20% transparency). You can choose the background color according to your needs.
7. After configuring the settings, save your changes and generate the executable. Then, run the .jar file through the command prompt.
By following these steps, you can add timestamps and tags to screenshots in Alchemy, making them more informative and useful for debugging and reporting.
0 Votes
Login or Sign up to post a comment