question

najboljsi007 avatar image
najboljsi007 asked drakesh answered

How to save test report automaticly to .html file

Is there any way or command to save test report as a html file automatically? It would be nice, because i have test, which send some files to my email address at the end. I want to attach this *.html file to email. Is this possible?
iTestresults and reporting
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sai_kiran avatar image
sai_kiran answered
We could save the testreports automatically by enabling the check box for **"Export testreports after execution"** option under windows-->preferences-->Spirent-->General-->Testreport-->Auto-Export Test report. Please find the attached screen shot for your reference. ![alt text][1] [1]: /storage/temp/3666-preference.png

preference.png (68.0 KiB)
1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

najboljsi007 avatar image najboljsi007 commented ·
Thank you on your answer and time. Looks useful! Tomorrow I will test your option.
0 Likes 0 ·
drakesh avatar image
drakesh answered
testreport-folder.jpg

Hi Emre,

By enabling the option "Export test reports after execution" under Windows -> Preferences -> Auto-Export Test Reports and give the folder path in "folder for test reports" (Attached is the screenshot for your reference).

Next use the run steps in a main testcase what ever testcases you want to execution and then run the main testcase. We can find the main and child test reports in specified folder path. Attached is the screenshot for your reference.

Thanks, Rakesh


runstep.jpg (140.8 KiB)
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

bhavani.geepalem avatar image
bhavani.geepalem answered

Currently, we cannot achieve this from iTest GUI, since test reports are generated based on the single template defined in the preferences. But, we can achieve this by using iTestCLI (-t) and iTestRT (--format) by specifying the required test report template path for the -t or --format options. Example: itestcli -w <workspace_path> -t <format_of_the_testreport_file> -r <Directory_name_to_store_test_report> <test_case_path> itestrt --itar <itar_path> --format <format_of_the_testreport_file> --report <test_report_file_path> --test <test_case_path> Refer the below KB article for more details: http://docid.spirent.com/FAQ14413

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

emre avatar image
emre answered

Is there a way to define the "folder for test reports" dynamically during the test execution? For example I want to separate my test Report regarding to my DUTs and so on...

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.