← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #179984]: Can we capture screenshot failed test cases in test link

 

Question #179984 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/179984

    Status: Answered => Open

Dileep Sarkar is still having a problem:
Hi raiman,
i need screenshot should be stored in the testlink is it possible!!!!!!
can u give me sample code for screenshot capture with comment i mean for failed test scipts how to write code.

sample code

if (screen.exists("Images/Login/CloseOperation_ConnecttoOperationWindow.png")!= null)
{
nota += "Pass: Operation Window is closed ";
screen.click("Images/Login/LogOut.png",0);
}
else
if (blnFail == false)
{
resultado = TestLinkAPIResults.TEST_FAILED;
here i need to write code for screenshot capture.
}

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.