Error details population in RTC defect from RQM/RFT failure
Hi - is there any API available to populate the error coming from automated execution of RFT to the defect description in RTC, when the failed test case / script is linked to this defect?
|
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) |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
Can you elaborate a bit more?
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?