Hi tester, small notice from the testpoint ...
I just changed my test and switched: <closeWindow/> with <previousResponse/> and everythink is fine. Strange, isn't it? The most displeasing ist he missing "failed rest" in the Report-Overview, isn't it? Greetings Michael Habbert [...]Betreff: [Webtest] Problem with Webtest-Report-Overview - missing "failed test" Hi Webtestfriends, I observed a strange behavior. Using the webtests I recently realized, that a failing webtest (on single testcase) might not be reported in the overview! So the Webtests show green also there is one failing testcase. The analyse: The webtest: Login, click to the page and click a pdf-link, searches for one string inside, go back and logout. -------------------------------------- &login; <clickLink description="Click link: > Portalmanagement" htmlId="nav-main-Portal-Admin"/> <clickLink description="Click link: Benutzerverwaltung" htmlId="nav-sub-user-management"/> [...] <verifyImages/> <!-- click Link for Download the PDF and search inside the PDF for the String Linzenen! --> <clickLink label="Lizenzen"/> <pdfVerifyText description="check the pdf for the String Lizenzen!" text=".+Lizenzen.*" regex="true"/> <closeWindow/> <verifyText description="Verify that text is contained in the page" text="Lizenzen Berichte"/> &check_no_error; &logout; The log shows: [groovyScript] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: closeWindow (24/26) [groovyScript] INFO (com....WebClientContext) - The window containing current response has been closed, the content of the last opened window will become the current response [groovyScript] INFO (com....WebClientContext) - The window containing current response has been closed, the content of the last opened window will become the current response [groovyScript] INFO (com.....WebClientContext) - The window containing current response has been closed, the content of the last opened window will become the current response [groovyScript] [T: Thread-4]-- catched java.util.EmptyStackException [groovyScript] java.util.EmptyStackException [groovyScript] at java.util.Stack.peek(Stack.java:85) [groovyScript] at com.canoo.webtest.engine.WebClientContext.getCurrentResponse(WebClientContext.java:201) [groovyScript] at com.canoo.webtest.engine.Context.getCurrentResponse(Context.java:95) [groovyScript] at com.canoo.webtest.reporting.StepExecutionListener.isNewResponse(StepExecutionListener.java:320) [groovyScript] at com.canoo.webtest.reporting.StepExecutionListener.saveCurrentResponseIfNeeded(StepExecutionListener.java:190) [groovyScript] at com.canoo.webtest.reporting.StepExecutionListener.taskFinished(StepExecutionListener.java:167) [groovyScript] at org.apache.tools.ant.Project.fireTaskFinished(Project.java:2125) [groovyScript] at org.apache.tools.ant.Task.perform(Task.java:364) [groovyScript] at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:206) [...] [groovyScript] at java.lang.Thread.run(Thread.java:619) [groovyScript] [T: Thread-4]-- executed [groovyScript] [T: Thread-4]-- Finished check PHP: portalmanagement/benutzerverwaltung check downloads - READING! - C:\MocPortalProjects\AgsPortalTest\webtests\results [groovyScript] [T: Thread-4]-- 0 workers after removing myself [groovyScript] [T: Thread-4]-- no job for me anymore. Exiting [...] BUILD FAILED C:\MocPortalProjects\AgsPortalTest\webtests\build.xml:251: The following error occurred while executing this line: C:\MocPortalProjects\AgsPortalTest\lib\webtest\webtest.xml:416: input file C:\MocPortalProjects\AgsPortalTest\webtests\results\WebTestOverview.xml does not exist In the end there is not TestReport for this failed test. Greetings Michael Habbert Michael Habbert Key-Work Consulting GmbH | Kriegsstr. 100 | 76133 Karlsruhe | Germany | www.key-work.de<http://www.key-work.de> Fon: +49-721-78203-269 | E-Mail: [email protected]<mailto:[email protected]> | Fax: +49-721-78203-10 Key-Work Consulting GmbH, Karlsruhe, HRB 108695, HRG Mannheim Geschäftsführer: Andreas Stappert, Tobin Wotring Michael Habbert Key-Work Consulting GmbH | Kriegsstr. 100 | 76133 Karlsruhe | Germany | www.key-work.de<http://www.key-work.de> Fon: +49-721-78203-269 | E-Mail: [email protected]<mailto:[email protected]> | Fax: +49-721-78203-10 Key-Work Consulting GmbH, Karlsruhe, HRB 108695, HRG Mannheim Geschäftsführer: Andreas Stappert, Tobin Wotring

