Hi,
I was wondering if there is a way to log say a line of text, that changes from test to test due to it being a reference number, on a successful test or preferably as part of a report. It would be super useful to me if i could run a test and then be able to turn around and say i ran 10 tests here are the references as logged by my test.
@stan.sole Yes it is possible. You just need to grab that text and save it in a variable then print it. This way it will be in a report. You can have your reports saved to Katalon Analytics too.
Another way is to save the variable into a database this way you can reference which text was saved at what time.
I use both the approaches at my workplace. We regularly do clean up of our test environments and then using Katalon Studio I generate test data for specific requirements and scenarios. This is all published in form of reports in Katalon Analytics and from there different teams can find out what scenario can be accomplished with what test data.
Hi, thanks for the script. I tried this suggested script on my testing. It will return passed on my testing but the case number that I try to capture for reference is not save on my testing. Here’s the result. thanks for the help.
Where are you looking for the text? It should appear in the report once it has been printed. I believe the println command is required for this, are you using it? I am not so sure what youre asking with the second comment, as long as it has a valid object repository i see no reason as to why it wouldnt work.