Trace: » webtest
Ask questions and leave feedback on WebTest here
Please use this page to leave questions and feedback on WebTest. You'll need to log in to edit the page (registration is free and takes only a second). Alternatively, send your comments to me by e-mail. Make sure to insert the signature using the second icon from the right.
Hi, I like your Java WebTest fixture (com.neuri.webfixture.WebTest) - its pretty handy!! However, I am having issues extending it for my current tests as you have made the Selenium instance private - consequently if I try to implement anything else in my sub-class I cant!! Any chance of changing this to be protected?
sure, change it in the source there and i'll make sure that it makes it to the next release.
— Gojko Adzic 2008/02/22 07:34
Hi,I wanted to know if its possible to mix dbfit and webtest fixtures on one page.This would help us,in rolling back database after web fixture test is executed.
yes. since webtest fixtures work both as flow-mode sequence/do fixtures, you will have to use dbfit in standalone mode and commit explicitly after the changes to make them persistent.
— Gojko Adzic 2008/03/13 14:19
Hi,I am unable to make webtest work with dbfit.This is what my test looks like
!define COMMAND_PATTERN {%m %p}
!define TEST_RUNNER {dotnet2\FitServer.exe}
!define PATH_SEPARATOR {;}
!path dotnet2\dbfit.dll
|import|
|dbfit.fixture|
!|DatabaseEnvironment|sqlserver|
|Connect|server|username|password|TestDB|
!path dotnet2\webfixture.dll
!|com.neuri.webfixture.WebTest|
!define server {http://localhost:2770/website}
!define browser {*iehta}
!|Start Browser|${browser}|With Selenium Console On|localhost|At Port|4444|And Scripts At|${server}|
I am getting error -startbrowser not found.
webtest has to run in flow mode, so it has to be the first table on the page. so reshuffle your test to look like this:
!define COMMAND_PATTERN {%m %p}
!define TEST_RUNNER {dotnet2\FitServer.exe}
!define PATH_SEPARATOR {;}
!path dotnet2\dbfit.dll
!path dotnet2\webfixture.dll
!|com.neuri.webfixture.WebTest|
!define server {http://localhost:2770/website}
!define browser {*iehta}
|import|
|dbfit.fixture|
!|DatabaseEnvironment|sqlserver|
|Connect|server|username|password|TestDB|
!|Start Browser|${browser}|With Selenium Console On|localhost|At Port|4444|And Scripts At|${server}|
— Gojko Adzic 2008/03/18 09:00
Note that the import fixture requires a capital I, so change |import| to |Import|
— //Pål Brattberg
