question

AmeyaB avatar image
AmeyaB asked AmeyaB answered

How to determine name of test report when using "Auto-Export Test Reports" option?

I am using the feature as described in https://forums.spirent.com/questions/21064/how-to-save-test-report-automaticly-to-html-file.html to automatically generate HTML reports for each execution.

@sai_kiran In the case of a master test case that calls another test case using the "run" command, is there a way in the master test case to determine the name and location of the generated test report?

iTesttest reportshtmlauto-generate
10 |950

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

1 Answer

·
lakshminarayana avatar image
lakshminarayana answered

We can find the location of the auto generated test reports by reading the file "com.fnfr.svt.reporting.prefs".

The folder path we set under iTest - Preferences ==> "Auto-Export Test Reports" will be saved in the file "com.fnfr.svt.reporting.prefs" which is located under the workspace, ".metadata\.plugins\org.eclipse.core.runtime\.settings".

As we know, when the masted test case execution completes, a folder will be created with its name (for the first time execution) and under that all the test reports will be generated with its name and time stamp.

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.

AmeyaB avatar image AmeyaB ♦ commented ·

Thanks for that.

Is there any way we can determine the actual file name from within iTest?

What I'm trying to do is to write a step in the master test case to copy the report file from the folder set in the prefs to another folder, and I need to know the exact file name to do that.

0 Likes 0 ·

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.