Not adding screenshot in execution results-RQM Junit Selenium Adapter
We are running the test as per the guidelines mentioned in this link:
http://www.ibm.com/developerworks/rational/library/run-automated-selenium-junit-tests/
public void takeScreenShot(String fname) throws Exception
File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
String imageFileDir = System.getProperty("selenium.screenshot.dir");
if (imageFileDir == null)
imageFileDir = System.getProperty("java.io.tmpdir");
FileUtils.copyFile(scrFile, new File(imageFileDir, fname));
}
Run-time value of the property ”selenium.screenshot.dir” = C:\Users\Administrator\AppData\Local\Temp\2\QMAdapterJUnitImgs_1400829590655
RQM Version: 4.0.5
RQMJunitSeleniumAdapter version: 4.0.5
One answer
Vaibhav