Error details population in RTC defect from RQM/RFT failure
One answer
RFT provides the following API to capture screen shot :
getRootTestObject().getScreenSnapshot();
This can be added to the playback log file using :
logInfo("Final Screen Shot", getRootTestObject().getScreenSnapshot());
and in RFT preferences window for playback->logging there is a preference to enable capturing of screen snapshot in case the playback fails (which should be enabled by default i guess)
getRootTestObject().getScreenSnapshot();
This can be added to the playback log file using :
logInfo("Final Screen Shot", getRootTestObject().getScreenSnapshot());
and in RFT preferences window for playback->logging there is a preference to enable capturing of screen snapshot in case the playback fails (which should be enabled by default i guess)
Comments
Paul Slauenwhite
FORUM MODERATOR / JAZZ DEVELOPER Jan 21 '15, 6:45 a.m.Can you elaborate a bit more?
Supriya Nandi
Jan 31 '15, 12:08 a.m.When a test case fails, defect gets created thru RTC API in the tool we are buidling, requirement is to provide the error screen shot as an attachment to the created defect.
So does RFT execution failure generates screenshot?
Can there be any API to pick up this screenshot and attach to defect as a linked file?