TestPlan Debugging and tracking web & HTML documents
Document

Debugging and tracking web & HTML documents

by Group Public on Wednesday November 12 2008 @ 13:22:01 (1/1 Points)

Configuration ↪Reference ✑ Reply ✓ Stick It ✗ Ditch It ⚐ Tag It

When an error occurs during a test it is often helpful to determine where in your program you were, or more particularly the content of the HTML page.

Debug.Web

There context parameter Debug.Web can be specified to record web transactions and documents to the named file.

testplan mytest.test Debug.Web=/tmp/out.log
Exactly what is recorded and how depends on the Mode that is being used. For example, HTMLUnit and Selenium have two entirely different formats.

Web.Selenium.NoSessionCleanup

If running in Selenium mode normally the browsers that are created will be closed on exit (also in case of errors). To have Selenium leave those windows open you can specify the NoSessionCleanup flag.

testplan --selenium mytest.test Web.Selenium.NoSessionCleanup=true
© 2008-2010 edA-qa mort-ora-y
Using Persephone and TestPlan
Tag: