Cybersecurity
DevOps Cloud (ADM)
IT Operations Cloud
How do I attach further files to execution results in SilkCentral Test Manager?
QUESTION
----------------------------------
How do I attach further files to execution results in SilkCentral
Test Manager?
ANSWER
----------------------------------
It is not possible to add additional files to the results of an
execution run. The files which are attached to the results are
those generated in the same directory from where the test
definition is executed on the execution server. If your test
definition generates additional files and you would like those to
be attached to the results you must ensure that they are generated
in the same folder from which the test definition is
executed.
For Example.
A SilkTest Test Definition takes a screenshot and saves it to some
set directory. When the results are collected by SilkCentral the
"Files" tab of the Results dialog will look like:
As you can see from the above only the SilkTest results file was
collected. If you look at the code for capturing the screenshot in
the SilkTest script it looks like:
Desktop.CaptureBitmap("C:\ScreenShots\testBitmap.bmp")
The screenshot is saved to the directory
"C:\ScreenShots\", in order to have the screen shot
generated in the same location from where the test definition is
executed, therefore the script in your source control system should
be edited to look like:
Desktop.CaptureBitmap("testBitmap.bmp")
Now the screenshot will be generated in the same directory as
the test definition. If you now execute your SilkTest test
definition from SilkCentral Test Manager again you should now see
your additional files attached as follows: