|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Odd problemHey, I recently ran a test on statefarm.com which worked fine according to webtest (build was successful). The test goes through the auto rate quote on statefarm.com (about 5 pages of forms to fill out), and gets through all of it just fine. However, at the very end I just get to a page which says
Unable to Continue We are unable to furnish an online quote with the information provided.
When I fill in the same information manually myself, I get an auto rate quote. I am wondering if someone can take a look at my script code to see if maybe I’m somehow filling out a field wrong? Anyone have some time to spare? <?xml version="1.0"?> <!DOCTYPE project SYSTEM "../dtd/Project.dtd"> <project default="test"> <target name="test"> <webtest name="Automate the State Farm auto rate quote."> <config> <option name="ThrowExceptionOnScriptError" value="false" /> <header name="User-Agent" value="Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8) Gecko/20051111 Firefox/1.5"/> </config> <invoke url="https://statefarm.com" description="Go to State Farm"/> <setInputField htmlid="sZip" value="60630" /> <clickButton htmlid="getRateQuoteGo" /> <setInputField htmlid="__SFX_UniqueID_3" value="Zxxzzyyiarq" /> <setInputField htmlid="__SFX_UniqueID_5" value="Yxxzzyyiarq" /> <setSelectField name="residenceType" value="HOME" /> <setSelectField name="homeOwnerShipStatus" value="OWN" /> <setInputField htmlid="__SFX_UniqueID_6" value="1" /> <setInputField htmlid="__SFX_UniqueID_7" value="1" /> <setInputField htmlid="__SFX_UniqueID_8" value="4951 W Winona St" /> <setInputField htmlid="__SFX_UniqueID_12" value="BuildValidation-It-c-2@..." /> <setInputField htmlid="__SFX_UniqueID_14" value="222-333-4444" /> <forceHiddenInputField name="CommPersonalLiabilityUmbrellaPolicy" value="N" /> <forceHiddenInputField name="licenseSusOrRevokedInd" value="N" /> <forceHiddenInputField name="driverOwnedVehicleWithOutIns" value="N" /> <forceHiddenInputField name="existingSFCustomerInd" value="N" /> <clickLink htmlid="buttonContinueId" /> <clickLink htmlid="yesButtonId" /> <setInputField name="driver1DateOfBirthFMT" value="03-01-1989" /> <forceHiddenInputField name="driver1Gender" value="M" /> <setSelectField name="driver1MaritalStatus" value="M" /> <setSelectField name="driver1EmploymentStatus" value="FULL-TIME" /> <setInputField htmlid="__SFX_UniqueID_9" value="Test Analyst" /> <setInputField htmlid="__SFX_UniqueID_10" value="RM665890" /> <setSelectField name="driverLicenseState" value="OH" /> <forceHiddenInputField name="driver1AccidentsLastThreeYearsInd" value="N" /> <setSelectField name="driver1MajorViolations" value="NONE" /> <forceHiddenInputField name="driver1TicketsLastThreeYearsInd" value="N" /> <clickLink htmlid="buttonContinueId" /> <forceHiddenInputField name="goodStudent" value="Y" /> <forceHiddenInputField name="longDistanceSchool" value="N" /> <clickLink htmlid="buttonContinueId" />
<forceHiddenInputField name="ymmbYear1" value="1993" /> <forceHiddenInputField name="ymmbMake1" value="CHRYSLER" /> <forceHiddenInputField name="ymmbModel1" value="LEBARON" /> <forceHiddenInputField name="ymmbBodyStyle1" value=""LE" 4D SED GAS" /> <clickLink htmlid="buttonContinueId" /> <setInputField htmlid="__SFX_UniqueID_3" value="5" /> <setSelectField name="guiDaysDrivenPerWeek1" value="5" /> <setInputField htmlid="__SFX_UniqueID_4" value="50,000" /> <setInputField htmlid="__SFX_UniqueID_5" value="9501" /> <setSelectField name="guiVehicleFinancing1" value="OWN" /> <forceHiddenInputField name="guiRegisteredOwners1:0" value="Y" /> <setSelectField name="guiTypeOfAirbag1" value="DUAL FRONT SEAT" /> <forceHiddenInputField name="guiVehicleEquippedWithAutoSeatbelts1" value="Y" /> <forceHiddenInputField name="guiVehicleEquippedWithAntiTheft1" value="N" /> <setInputField name="guiMonthAndYearPurchased1FMT" value="08-01-2005" /> <clickLink htmlid="buttonContinueId" /> <setSelectField name="guiCurrentInsCompany:0" value="ALLSTATE" /> <setInputField name="guiWithInsCompanyforYears:0FMT" value="5" /> <setSelectField name="guiCurrentCompBodilyInjuryLmts:0" value="25000/50000" /> <clickLink htmlid="buttonContinueId" />
</webtest> </target> </project>
Thanks, Alex |
|
|
|
Re: Odd problem
|
|
|
|
Re: Odd problemHi,
I don't think that it is possible to find the cause without to know your web site. If you use <option name="ThrowExceptionOnScriptError" value="false" /> then it probably means that WebTest is not able to interpret the JS code correctly and therefore it is not a surprise that you don't get the same results. An idea is to use a proxy to compare the requests that are made by WebTest and by a normal browser. Cheers, Marc. Alex Ignatov a écrit : > Hey, > > I recently ran a test on statefarm.com which worked fine according to > webtest (build was successful). The test goes through the auto rate > quote on statefarm.com (about 5 pages of forms to fill out), and gets > through all of it just fine. However, at the very end I just get to a > page which says > > ***Unable to Continue* > > We are unable to furnish an online quote with the information provided. > Please forward your information to a State Farm agent who can help > determine your insurance needs. > > When I fill in the same information manually myself, I get an auto rate > quote. > > I am wondering if someone can take a look at my script code to see if > maybe I’m somehow filling out a field wrong? Anyone have some time to spare? > > > <?xml version="1.0"?> > > <!DOCTYPE project SYSTEM "../dtd/Project.dtd"> > > <project default="test"> > > <target name="test"> > > <webtest name="Automate the State Farm auto rate quote."> > > <config> > > <option > name="ThrowExceptionOnScriptError" value="false" /> > > <header name="User-Agent" > value="Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8) > Gecko/20051111 Firefox/1.5"/> > > </config> > > <invoke url="https://statefarm.com" > description="Go to State Farm"/> > > <setInputField htmlid="sZip" value="60630" /> > > <clickButton htmlid="getRateQuoteGo" /> > > <setInputField htmlid="__SFX_UniqueID_3" > value="Zxxzzyyiarq" /> > > <setInputField htmlid="__SFX_UniqueID_5" > value="Yxxzzyyiarq" /> > > <setSelectField name="residenceType" value="HOME" /> > > <setSelectField name="homeOwnerShipStatus" > value="OWN" /> > > <setInputField htmlid="__SFX_UniqueID_6" > value="1" /> > > <setInputField htmlid="__SFX_UniqueID_7" > value="1" /> > > <setInputField htmlid="__SFX_UniqueID_8" > value="4951 W Winona St" /> > > <setInputField htmlid="__SFX_UniqueID_12" > value="BuildValidation-It-c-2@..." /> > > <setInputField htmlid="__SFX_UniqueID_14" > value="222-333-4444" /> > > <forceHiddenInputField > name="CommPersonalLiabilityUmbrellaPolicy" value="N" /> > > <forceHiddenInputField > name="licenseSusOrRevokedInd" value="N" /> > > <forceHiddenInputField > name="driverOwnedVehicleWithOutIns" value="N" /> > > <forceHiddenInputField > name="existingSFCustomerInd" value="N" /> > > <clickLink htmlid="buttonContinueId" /> > > <clickLink htmlid="yesButtonId" /> > > <setInputField name="driver1DateOfBirthFMT" > value="03-01-1989" /> > > <forceHiddenInputField name="driver1Gender" > value="M" /> > > <setSelectField name="driver1MaritalStatus" > value="M" /> > > <setSelectField name="driver1EmploymentStatus" > value="FULL-TIME" /> > > <setInputField htmlid="__SFX_UniqueID_9" > value="Test Analyst" /> > > <setInputField htmlid="__SFX_UniqueID_10" > value="RM665890" /> > > <setSelectField name="driverLicenseState" > value="OH" /> > > <forceHiddenInputField > name="driver1AccidentsLastThreeYearsInd" value="N" /> > > <setSelectField name="driver1MajorViolations" > value="NONE" /> > > <forceHiddenInputField > name="driver1TicketsLastThreeYearsInd" value="N" /> > > <clickLink htmlid="buttonContinueId" /> > > <forceHiddenInputField name="goodStudent" > value="Y" /> > > <forceHiddenInputField name="longDistanceSchool" > value="N" /> > > <clickLink htmlid="buttonContinueId" /> > > > > <forceHiddenInputField name="ymmbYear1" > value="1993" /> > > <forceHiddenInputField name="ymmbMake1" > value="CHRYSLER" /> > > <forceHiddenInputField name="ymmbModel1" > value="LEBARON" /> > > <forceHiddenInputField name="ymmbBodyStyle1" > value=""LE" 4D SED GAS" /> > > <clickLink htmlid="buttonContinueId" /> > > <setInputField htmlid="__SFX_UniqueID_3" > value="5" /> > > <setSelectField name="guiDaysDrivenPerWeek1" > value="5" /> > > <setInputField htmlid="__SFX_UniqueID_4" > value="50,000" /> > > <setInputField htmlid="__SFX_UniqueID_5" > value="9501" /> > > <setSelectField name="guiVehicleFinancing1" > value="OWN" /> > > <forceHiddenInputField > name="guiRegisteredOwners1:0" value="Y" /> > > <setSelectField name="guiTypeOfAirbag1" > value="DUAL FRONT SEAT" /> > > <forceHiddenInputField > name="guiVehicleEquippedWithAutoSeatbelts1" value="Y" /> > > <forceHiddenInputField > name="guiVehicleEquippedWithAntiTheft1" value="N" /> > > <setInputField > name="guiMonthAndYearPurchased1FMT" value="08-01-2005" /> > > <clickLink htmlid="buttonContinueId" /> > > <setSelectField name="guiCurrentInsCompany:0" > value="ALLSTATE" /> > > <setInputField > name="guiWithInsCompanyforYears:0FMT" value="5" /> > > <setSelectField > name="guiCurrentCompBodilyInjuryLmts:0" value="25000/50000" /> > > > <clickLink htmlid="buttonContinueId" /> > > > > > </webtest> > > </target> > > </project> > > > Thanks, > > Alex > _______________________________________________ WebTest mailing list WebTest@... http://lists.canoo.com/mailman/listinfo/webtest |
|
|
|
RE: Odd problemI tried running the script on a computer with no internet restrictions, so I was able to remove the ThrowExceptionOnScriptError line. This didn't change anything and no errors came up in Webtest. Here's part of the data from the command prompt (I can't really make sense of it, but hopefully you can):
8/53) [clickLink] WARN (com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl) - Ex pected content type of 'application/javascript' or 'application/ecmascript' for remotely loaded JavaScript element at 'https://online2.statefarm.com/apps/autoqu oteapply/scripts/raa.js', but got 'application/x-javascript'. [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of windo w changed to https://online2.statefarm.com/apps/autoquoteapply/execute.do?TF:ID= ControllerFramework:0&TF:RN=1&CTCurrentPage=generalInfo&CTNextPage=drivers (text /html) [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of curre nt window changed, it will become current response [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current form set to none [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current response now: https://online2.statefarm.com/apps/autoquoteapply/execute.do?TF:ID=Control lerFramework:0&TF:RN=1&CTCurrentPage=generalInfo&CTNextPage=drivers [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS e rror: null [27:79] Error in style rule. Invalid token "!". Was expecting one of: <S>, "}", ";", <IDENT>. [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS w arning: null [27:79] Ignoring the following declarations in this rule. [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS e rror: null [12:17] Error in style rule. Invalid token "*". Was expecting one of: <S>, "}", ";", <IDENT>. [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS w arning: null [12:17] Ignoring the following declarations in this rule. [setInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setInput Field (19/53) [setInputField] INFO (com.canoo.webtest.engine.WebClientContext) - Current form set to (action=execute.do?TF:ID=ControllerFramework:0&TF:RN=2) [setInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Foun d 1 suitable fields, considering only the first one [forceHiddenInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: forceHiddenInputField (20/53) [forceHiddenInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep ) - Found 1 suitable fields, considering only the first one [setSelectField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setSele ctField (21/53) [setSelectField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Fou nd 1 suitable fields, considering only the first one [setSelectField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setSele ctField (22/53) [setSelectField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Fou nd 1 suitable fields, considering only the first one [setInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setInput Field (23/53) [setInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setInput Field (24/53) [setSelectField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setSele ctField (25/53) [setSelectField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Fou nd 1 suitable fields, considering only the first one [forceHiddenInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: forceHiddenInputField (26/53) [forceHiddenInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep ) - Found 1 suitable fields, considering only the first one [setSelectField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setSele ctField (27/53) [setSelectField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Fou nd 1 suitable fields, considering only the first one [forceHiddenInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: forceHiddenInputField (28/53) [forceHiddenInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep ) - Found 1 suitable fields, considering only the first one [clickLink] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: clickLink (2 9/53) [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of windo w changed to https://online2.statefarm.com/apps/autoquoteapply/execute.do?TF:ID= ControllerFramework:0&TF:RN=2&CTCurrentPage=drivers&CTNextPage=vehicles (text/ht ml) [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of curre nt window changed, it will become current response [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current form set to none [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current response now: https://online2.statefarm.com/apps/autoquoteapply/execute.do?TF:ID=Control lerFramework:0&TF:RN=2&CTCurrentPage=drivers&CTNextPage=vehicles [forceHiddenInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: forceHiddenInputField (30/53) [forceHiddenInputField] INFO (com.canoo.webtest.engine.WebClientContext) - Curr ent form set to (action=execute.do?TF:ID=ControllerFramework:0&TF:RN=3) [forceHiddenInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep ) - Found 1 suitable fields, considering only the first one [forceHiddenInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: forceHiddenInputField (31/53) [forceHiddenInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep ) - Found 1 suitable fields, considering only the first one [clickLink] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: clickLink (3 2/53) [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of windo w changed to https://online2.statefarm.com/apps/autoquoteapply/execute.do?TF:ID= ControllerFramework:0&TF:RN=3&CTCurrentPage=driversTwo&CTNextPage=vehicles (text /html) [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of curre nt window changed, it will become current response [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current form set to none [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current response now: https://online2.statefarm.com/apps/autoquoteapply/execute.do?TF:ID=Control lerFramework:0&TF:RN=3&CTCurrentPage=driversTwo&CTNextPage=vehicles [forceHiddenInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: forceHiddenInputField (33/53) [forceHiddenInputField] INFO (com.canoo.webtest.engine.WebClientContext) - Curr ent form set to (action=execute.do?TF:ID=ControllerFramework:0&TF:RN=4) [forceHiddenInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep ) - Found 1 suitable fields, considering only the first one [forceHiddenInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: forceHiddenInputField (34/53) [forceHiddenInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep ) - Found 1 suitable fields, considering only the first one [forceHiddenInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: forceHiddenInputField (35/53) [forceHiddenInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep ) - Found 1 suitable fields, considering only the first one [forceHiddenInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: forceHiddenInputField (36/53) [forceHiddenInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep ) - Found 1 suitable fields, considering only the first one [clickLink] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: clickLink (3 7/53) [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of windo w changed to https://online2.statefarm.com/apps/autoquoteapply/execute.do?TF:ID= ControllerFramework:0&TF:RN=4&CTCurrentPage=vehicles&CTNextPage=vehiclesTwo (tex t/html) [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of curre nt window changed, it will become current response [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current form set to none [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current response now: https://online2.statefarm.com/apps/autoquoteapply/execute.do?TF:ID=Control lerFramework:0&TF:RN=4&CTCurrentPage=vehicles&CTNextPage=vehiclesTwo [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS e rror: null [123:17] Error in style rule. Invalid token "*". Was expecting one of : <S>, "}", ";", <IDENT>. [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS w arning: null [123:17] Ignoring the following declarations in this rule. [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS e rror: null [136:17] Error in style rule. Invalid token "*". Was expecting one of : <S>, "}", ";", <IDENT>. [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS w arning: null [136:17] Ignoring the following declarations in this rule. [setInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setInput Field (38/53) [setSelectField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setSele ctField (39/53) [setSelectField] INFO (com.canoo.webtest.engine.WebClientContext) - Current for m set to (action=execute.do?TF:ID=ControllerFramework:0&TF:RN=5) [setSelectField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Fou nd 1 suitable fields, considering only the first one [setInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setInput Field (40/53) [setInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setInput Field (41/53) [setSelectField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setSele ctField (42/53) [setSelectField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Fou nd 1 suitable fields, considering only the first one [forceHiddenInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: forceHiddenInputField (43/53) [forceHiddenInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep ) - Found 1 suitable fields, considering only the first one [setSelectField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setSele ctField (44/53) [setSelectField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Fou nd 1 suitable fields, considering only the first one [forceHiddenInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: forceHiddenInputField (45/53) [forceHiddenInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep ) - Found 1 suitable fields, considering only the first one [forceHiddenInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: forceHiddenInputField (46/53) [forceHiddenInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep ) - Found 1 suitable fields, considering only the first one [setInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setInput Field (47/53) [setInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Foun d 1 suitable fields, considering only the first one [clickLink] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: clickLink (4 8/53) [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of windo w changed to https://online2.statefarm.com/apps/autoquoteapply/execute.do?TF:ID= ControllerFramework:0&TF:RN=5&CTCurrentPage=vehiclesTwo&CTNextPage=coveragePacka gesBasic (text/html) [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of curre nt window changed, it will become current response [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current form set to none [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current response now: https://online2.statefarm.com/apps/autoquoteapply/execute.do?TF:ID=Control lerFramework:0&TF:RN=5&CTCurrentPage=vehiclesTwo&CTNextPage=coveragePackagesBasi c [setSelectField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setSele ctField (49/53) [setSelectField] INFO (com.canoo.webtest.engine.WebClientContext) - Current for m set to (action=execute.do?TF:ID=ControllerFramework:0&TF:RN=6) [setSelectField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Fou nd 1 suitable fields, considering only the first one [setInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setInput Field (50/53) [setInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Foun d 1 suitable fields, considering only the first one [forceHiddenInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: forceHiddenInputField (51/53) [forceHiddenInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep ) - Found 1 suitable fields, considering only the first one [setSelectField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setSele ctField (52/53) [setSelectField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Fou nd 1 suitable fields, considering only the first one [clickLink] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: clickLink (5 3/53) [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of windo w changed to https://online2.statefarm.com/apps/autoquoteapply/execute.do?TF:ID= ControllerFramework:0&TF:RN=6&CTCurrentPage=vehiclesThree&CTNextPage=coveragePac kagesBasic (text/html) [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of curre nt window changed, it will become current response [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current form set to none [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current response now: https://online2.statefarm.com/apps/autoquoteapply/execute.do?TF:ID=Control lerFramework:0&TF:RN=6&CTCurrentPage=vehiclesThree&CTNextPage=coveragePackagesBa sic [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS e rror: null [79:9] Error in style rule. Invalid token "*". Was expecting one of: <S>, "}", ";", <IDENT>. [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS w arning: null [79:9] Ignoring the following declarations in this rule. [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS e rror: null [132:9] Error in style rule. Invalid token "*". Was expecting one of: <S>, "}", ";", <IDENT>. [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS w arning: null [132:9] Ignoring the following declarations in this rule. [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS e rror: null [439:9] Error in style rule. Invalid token "*". Was expecting one of: <S>, "}", ";", <IDENT>. [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS w arning: null [439:9] Ignoring the following declarations in this rule. INFO (com.canoo.webtest.ant.WebtestTask) - Finished executing webtest "Automate the State Farm auto rate quote." (C:\Downloads\build\myWebTestProject\tests\sta tefarm.xml:9: ) INFO (com.canoo.webtest.reporting.XmlReporter) - Writing report to C:\Downloads \build\myWebTestProject\results\001_AutomateTheState\WebTestReport.xml INFO (com.canoo.webtest.ant.WebtestTask) - Test report successfully created. wt.groovyTests: wt.parallel.waitForCompletion: wt.htmlReports.init: wt.htmlReports: [mkdir] Created dir: C:\Downloads\build\myWebTestProject\results\resources [copy] Copying 20 files to C:\Downloads\build\myWebTestProject\results\reso urces [xslt] Transforming into C:\Downloads\build\myWebTestProject\results [xslt] Processing C:\Downloads\build\myWebTestProject\results\001_AutomateT heState\WebTestReport.xml to C:\Downloads\build\myWebTestProject\results\001_Aut omateTheState\WebTestReport.html [xslt] Loading stylesheet C:\Downloads\build\resources\WebTestReport.xsl [xslt] Transforming into C:\Downloads\build\myWebTestProject\results [xslt] Processing C:\Downloads\build\myWebTestProject\results\001_AutomateT heState\WebTestReport.xml to C:\Downloads\build\myWebTestProject\results\001_Aut omateTheState\WebTestSummary.xml [xslt] Loading stylesheet C:\Downloads\build\resources\WebTestReportSummary Extractor.xsl [groovyScript] Reading C:\Downloads\build\myWebTestProject\results\001_AutomateT heState\WebTestSummary.xml [groovyScript] Writing C:\Downloads\build\myWebTestProject\results\WebTestOvervi ew.xml [xslt] Processing C:\Downloads\build\myWebTestProject\results\WebTestOvervi ew.xml to C:\Downloads\build\myWebTestProject\results\index.html [xslt] Loading stylesheet C:\Downloads\build\resources\WebTestReportOvervie w.xsl wt.openResultFile.init: wt.openResultFile: [echo] Opening result file C:\Downloads\build\myWebTestProject\results\inde x.html with cmd wt.junitLikeReports: [xslt] Processing C:\Downloads\build\myWebTestProject\results\WebTestOvervi ew.xml to C:\Downloads\build\myWebTestProject\results\WebTestOverview.junit.xml [xslt] Loading stylesheet C:\Downloads\build\resources\WebTestOverview2JUni t.xsl wt.countWebtestResults: [countWebtestResults] 1 webtests run (successful: 1, failed: 0) wt.webtestMonitor.shutdown: wt.after.testInWork: wt.full: BUILD SUCCESSFUL Total time: 43 seconds C:\Downloads\build\myWebTestProject> -----Original Message----- From: webtest-admin@... [mailto:webtest-admin@...] On Behalf Of Marc Guillemot Sent: Friday, October 16, 2009 5:05 AM To: webtest@... Subject: Re: [Webtest] Odd problem Hi, I don't think that it is possible to find the cause without to know your web site. If you use <option name="ThrowExceptionOnScriptError" value="false" /> then it probably means that WebTest is not able to interpret the JS code correctly and therefore it is not a surprise that you don't get the same results. An idea is to use a proxy to compare the requests that are made by WebTest and by a normal browser. Cheers, Marc. Alex Ignatov a écrit : > Hey, > > I recently ran a test on statefarm.com which worked fine according to > webtest (build was successful). The test goes through the auto rate > quote on statefarm.com (about 5 pages of forms to fill out), and gets > through all of it just fine. However, at the very end I just get to a > page which says > > ***Unable to Continue* > > We are unable to furnish an online quote with the information provided. > Please forward your information to a State Farm agent who can help > determine your insurance needs. > > When I fill in the same information manually myself, I get an auto rate > quote. > > I am wondering if someone can take a look at my script code to see if > maybe I'm somehow filling out a field wrong? Anyone have some time to spare? > > > <?xml version="1.0"?> > > <!DOCTYPE project SYSTEM "../dtd/Project.dtd"> > > <project default="test"> > > <target name="test"> > > <webtest name="Automate the State Farm auto rate quote."> > > <config> > > <option > name="ThrowExceptionOnScriptError" value="false" /> > > <header name="User-Agent" > value="Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8) > Gecko/20051111 Firefox/1.5"/> > > </config> > > <invoke url="https://statefarm.com" > description="Go to State Farm"/> > > <setInputField htmlid="sZip" value="60630" /> > > <clickButton htmlid="getRateQuoteGo" /> > > <setInputField htmlid="__SFX_UniqueID_3" > value="Zxxzzyyiarq" /> > > <setInputField htmlid="__SFX_UniqueID_5" > value="Yxxzzyyiarq" /> > > <setSelectField name="residenceType" value="HOME" /> > > <setSelectField name="homeOwnerShipStatus" > value="OWN" /> > > <setInputField htmlid="__SFX_UniqueID_6" > value="1" /> > > <setInputField htmlid="__SFX_UniqueID_7" > value="1" /> > > <setInputField htmlid="__SFX_UniqueID_8" > value="4951 W Winona St" /> > > <setInputField htmlid="__SFX_UniqueID_12" > value="BuildValidation-It-c-2@..." /> > > <setInputField htmlid="__SFX_UniqueID_14" > value="222-333-4444" /> > > <forceHiddenInputField > name="CommPersonalLiabilityUmbrellaPolicy" value="N" /> > > <forceHiddenInputField > name="licenseSusOrRevokedInd" value="N" /> > > <forceHiddenInputField > name="driverOwnedVehicleWithOutIns" value="N" /> > > <forceHiddenInputField > name="existingSFCustomerInd" value="N" /> > > <clickLink htmlid="buttonContinueId" /> > > <clickLink htmlid="yesButtonId" /> > > <setInputField name="driver1DateOfBirthFMT" > value="03-01-1989" /> > > <forceHiddenInputField name="driver1Gender" > value="M" /> > > <setSelectField name="driver1MaritalStatus" > value="M" /> > > <setSelectField name="driver1EmploymentStatus" > value="FULL-TIME" /> > > <setInputField htmlid="__SFX_UniqueID_9" > value="Test Analyst" /> > > <setInputField htmlid="__SFX_UniqueID_10" > value="RM665890" /> > > <setSelectField name="driverLicenseState" > value="OH" /> > > <forceHiddenInputField > name="driver1AccidentsLastThreeYearsInd" value="N" /> > > <setSelectField name="driver1MajorViolations" > value="NONE" /> > > <forceHiddenInputField > name="driver1TicketsLastThreeYearsInd" value="N" /> > > <clickLink htmlid="buttonContinueId" /> > > <forceHiddenInputField name="goodStudent" > value="Y" /> > > <forceHiddenInputField name="longDistanceSchool" > value="N" /> > > <clickLink htmlid="buttonContinueId" /> > > > > <forceHiddenInputField name="ymmbYear1" > value="1993" /> > > <forceHiddenInputField name="ymmbMake1" > value="CHRYSLER" /> > > <forceHiddenInputField name="ymmbModel1" > value="LEBARON" /> > > <forceHiddenInputField name="ymmbBodyStyle1" > value=""LE" 4D SED GAS" /> > > <clickLink htmlid="buttonContinueId" /> > > <setInputField htmlid="__SFX_UniqueID_3" > value="5" /> > > <setSelectField name="guiDaysDrivenPerWeek1" > value="5" /> > > <setInputField htmlid="__SFX_UniqueID_4" > value="50,000" /> > > <setInputField htmlid="__SFX_UniqueID_5" > value="9501" /> > > <setSelectField name="guiVehicleFinancing1" > value="OWN" /> > > <forceHiddenInputField > name="guiRegisteredOwners1:0" value="Y" /> > > <setSelectField name="guiTypeOfAirbag1" > value="DUAL FRONT SEAT" /> > > <forceHiddenInputField > name="guiVehicleEquippedWithAutoSeatbelts1" value="Y" /> > > <forceHiddenInputField > name="guiVehicleEquippedWithAntiTheft1" value="N" /> > > <setInputField > name="guiMonthAndYearPurchased1FMT" value="08-01-2005" /> > > <clickLink htmlid="buttonContinueId" /> > > <setSelectField name="guiCurrentInsCompany:0" > value="ALLSTATE" /> > > <setInputField > name="guiWithInsCompanyforYears:0FMT" value="5" /> > > <setSelectField > name="guiCurrentCompBodilyInjuryLmts:0" value="25000/50000" /> > > > <clickLink htmlid="buttonContinueId" /> > > > > > </webtest> > > </target> > > </project> > > > Thanks, > > Alex > _______________________________________________ WebTest mailing list WebTest@... http://lists.canoo.com/mailman/listinfo/webtest _______________________________________________ WebTest mailing list WebTest@... http://lists.canoo.com/mailman/listinfo/webtest |
|
|
|
Re: Odd problemHi Alex,
I don't see any error here: your test is successful, isn't it? Cheers, Marc. Alex Ignatov a écrit : > I tried running the script on a computer with no internet restrictions, so I was able to remove the ThrowExceptionOnScriptError line. This didn't change anything and no errors came up in Webtest. Here's part of the data from the command prompt (I can't really make sense of it, but hopefully you can): > > 8/53) > [clickLink] WARN (com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl) - Ex > pected content type of 'application/javascript' or 'application/ecmascript' for > remotely loaded JavaScript element at 'https://online2.statefarm.com/apps/autoqu > oteapply/scripts/raa.js', but got 'application/x-javascript'. > [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of windo > w changed to https://online2.statefarm.com/apps/autoquoteapply/execute.do?TF:ID= > ControllerFramework:0&TF:RN=1&CTCurrentPage=generalInfo&CTNextPage=drivers (text > /html) > [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of curre > nt window changed, it will become current response > [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current form set > to none > [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current response > now: https://online2.statefarm.com/apps/autoquoteapply/execute.do?TF:ID=Control > lerFramework:0&TF:RN=1&CTCurrentPage=generalInfo&CTNextPage=drivers > [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS e > rror: null [27:79] Error in style rule. Invalid token "!". Was expecting one of: > <S>, "}", ";", <IDENT>. > [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS w > arning: null [27:79] Ignoring the following declarations in this rule. > [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS e > rror: null [12:17] Error in style rule. Invalid token "*". Was expecting one of: > <S>, "}", ";", <IDENT>. > [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS w > arning: null [12:17] Ignoring the following declarations in this rule. > [setInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setInput > Field (19/53) > [setInputField] INFO (com.canoo.webtest.engine.WebClientContext) - Current form > set to (action=execute.do?TF:ID=ControllerFramework:0&TF:RN=2) > [setInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Foun > d 1 suitable fields, considering only the first one > [forceHiddenInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: > forceHiddenInputField (20/53) > [forceHiddenInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep > ) - Found 1 suitable fields, considering only the first one > [setSelectField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setSele > ctField (21/53) > [setSelectField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Fou > nd 1 suitable fields, considering only the first one > [setSelectField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setSele > ctField (22/53) > [setSelectField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Fou > nd 1 suitable fields, considering only the first one > [setInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setInput > Field (23/53) > [setInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setInput > Field (24/53) > [setSelectField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setSele > ctField (25/53) > [setSelectField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Fou > nd 1 suitable fields, considering only the first one > [forceHiddenInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: > forceHiddenInputField (26/53) > [forceHiddenInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep > ) - Found 1 suitable fields, considering only the first one > [setSelectField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setSele > ctField (27/53) > [setSelectField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Fou > nd 1 suitable fields, considering only the first one > [forceHiddenInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: > forceHiddenInputField (28/53) > [forceHiddenInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep > ) - Found 1 suitable fields, considering only the first one > [clickLink] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: clickLink (2 > 9/53) > [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of windo > w changed to https://online2.statefarm.com/apps/autoquoteapply/execute.do?TF:ID= > ControllerFramework:0&TF:RN=2&CTCurrentPage=drivers&CTNextPage=vehicles (text/ht > ml) > [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of curre > nt window changed, it will become current response > [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current form set > to none > [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current response > now: https://online2.statefarm.com/apps/autoquoteapply/execute.do?TF:ID=Control > lerFramework:0&TF:RN=2&CTCurrentPage=drivers&CTNextPage=vehicles > [forceHiddenInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: > forceHiddenInputField (30/53) > [forceHiddenInputField] INFO (com.canoo.webtest.engine.WebClientContext) - Curr > ent form set to (action=execute.do?TF:ID=ControllerFramework:0&TF:RN=3) > [forceHiddenInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep > ) - Found 1 suitable fields, considering only the first one > [forceHiddenInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: > forceHiddenInputField (31/53) > [forceHiddenInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep > ) - Found 1 suitable fields, considering only the first one > [clickLink] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: clickLink (3 > 2/53) > [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of windo > w changed to https://online2.statefarm.com/apps/autoquoteapply/execute.do?TF:ID= > ControllerFramework:0&TF:RN=3&CTCurrentPage=driversTwo&CTNextPage=vehicles (text > /html) > [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of curre > nt window changed, it will become current response > [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current form set > to none > [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current response > now: https://online2.statefarm.com/apps/autoquoteapply/execute.do?TF:ID=Control > lerFramework:0&TF:RN=3&CTCurrentPage=driversTwo&CTNextPage=vehicles > [forceHiddenInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: > forceHiddenInputField (33/53) > [forceHiddenInputField] INFO (com.canoo.webtest.engine.WebClientContext) - Curr > ent form set to (action=execute.do?TF:ID=ControllerFramework:0&TF:RN=4) > [forceHiddenInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep > ) - Found 1 suitable fields, considering only the first one > [forceHiddenInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: > forceHiddenInputField (34/53) > [forceHiddenInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep > ) - Found 1 suitable fields, considering only the first one > [forceHiddenInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: > forceHiddenInputField (35/53) > [forceHiddenInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep > ) - Found 1 suitable fields, considering only the first one > [forceHiddenInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: > forceHiddenInputField (36/53) > [forceHiddenInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep > ) - Found 1 suitable fields, considering only the first one > [clickLink] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: clickLink (3 > 7/53) > [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of windo > w changed to https://online2.statefarm.com/apps/autoquoteapply/execute.do?TF:ID= > ControllerFramework:0&TF:RN=4&CTCurrentPage=vehicles&CTNextPage=vehiclesTwo (tex > t/html) > [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of curre > nt window changed, it will become current response > [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current form set > to none > [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current response > now: https://online2.statefarm.com/apps/autoquoteapply/execute.do?TF:ID=Control > lerFramework:0&TF:RN=4&CTCurrentPage=vehicles&CTNextPage=vehiclesTwo > [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS e > rror: null [123:17] Error in style rule. Invalid token "*". Was expecting one of > : <S>, "}", ";", <IDENT>. > [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS w > arning: null [123:17] Ignoring the following declarations in this rule. > [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS e > rror: null [136:17] Error in style rule. Invalid token "*". Was expecting one of > : <S>, "}", ";", <IDENT>. > [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS w > arning: null [136:17] Ignoring the following declarations in this rule. > [setInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setInput > Field (38/53) > [setSelectField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setSele > ctField (39/53) > [setSelectField] INFO (com.canoo.webtest.engine.WebClientContext) - Current for > m set to (action=execute.do?TF:ID=ControllerFramework:0&TF:RN=5) > [setSelectField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Fou > nd 1 suitable fields, considering only the first one > [setInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setInput > Field (40/53) > [setInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setInput > Field (41/53) > [setSelectField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setSele > ctField (42/53) > [setSelectField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Fou > nd 1 suitable fields, considering only the first one > [forceHiddenInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: > forceHiddenInputField (43/53) > [forceHiddenInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep > ) - Found 1 suitable fields, considering only the first one > [setSelectField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setSele > ctField (44/53) > [setSelectField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Fou > nd 1 suitable fields, considering only the first one > [forceHiddenInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: > forceHiddenInputField (45/53) > [forceHiddenInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep > ) - Found 1 suitable fields, considering only the first one > [forceHiddenInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: > forceHiddenInputField (46/53) > [forceHiddenInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep > ) - Found 1 suitable fields, considering only the first one > [setInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setInput > Field (47/53) > [setInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Foun > d 1 suitable fields, considering only the first one > [clickLink] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: clickLink (4 > 8/53) > [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of windo > w changed to https://online2.statefarm.com/apps/autoquoteapply/execute.do?TF:ID= > ControllerFramework:0&TF:RN=5&CTCurrentPage=vehiclesTwo&CTNextPage=coveragePacka > gesBasic (text/html) > [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of curre > nt window changed, it will become current response > [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current form set > to none > [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current response > now: https://online2.statefarm.com/apps/autoquoteapply/execute.do?TF:ID=Control > lerFramework:0&TF:RN=5&CTCurrentPage=vehiclesTwo&CTNextPage=coveragePackagesBasi > c > [setSelectField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setSele > ctField (49/53) > [setSelectField] INFO (com.canoo.webtest.engine.WebClientContext) - Current for > m set to (action=execute.do?TF:ID=ControllerFramework:0&TF:RN=6) > [setSelectField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Fou > nd 1 suitable fields, considering only the first one > [setInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setInput > Field (50/53) > [setInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Foun > d 1 suitable fields, considering only the first one > [forceHiddenInputField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: > forceHiddenInputField (51/53) > [forceHiddenInputField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep > ) - Found 1 suitable fields, considering only the first one > [setSelectField] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: setSele > ctField (52/53) > [setSelectField] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Fou > nd 1 suitable fields, considering only the first one > [clickLink] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: clickLink (5 > 3/53) > [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of windo > w changed to https://online2.statefarm.com/apps/autoquoteapply/execute.do?TF:ID= > ControllerFramework:0&TF:RN=6&CTCurrentPage=vehiclesThree&CTNextPage=coveragePac > kagesBasic (text/html) > [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Content of curre > nt window changed, it will become current response > [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current form set > to none > [clickLink] INFO (com.canoo.webtest.engine.WebClientContext) - Current response > now: https://online2.statefarm.com/apps/autoquoteapply/execute.do?TF:ID=Control > lerFramework:0&TF:RN=6&CTCurrentPage=vehiclesThree&CTNextPage=coveragePackagesBa > sic > [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS e > rror: null [79:9] Error in style rule. Invalid token "*". Was expecting one of: > <S>, "}", ";", <IDENT>. > [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS w > arning: null [79:9] Ignoring the following declarations in this rule. > [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS e > rror: null [132:9] Error in style rule. Invalid token "*". Was expecting one of: > <S>, "}", ";", <IDENT>. > [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS w > arning: null [132:9] Ignoring the following declarations in this rule. > [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS e > rror: null [439:9] Error in style rule. Invalid token "*". Was expecting one of: > <S>, "}", ";", <IDENT>. > [clickLink] WARN (com.gargoylesoftware.htmlunit.DefaultCssErrorHandler) - CSS w > arning: null [439:9] Ignoring the following declarations in this rule. > INFO (com.canoo.webtest.ant.WebtestTask) - Finished executing webtest "Automate > the State Farm auto rate quote." (C:\Downloads\build\myWebTestProject\tests\sta > tefarm.xml:9: ) > INFO (com.canoo.webtest.reporting.XmlReporter) - Writing report to C:\Downloads > \build\myWebTestProject\results\001_AutomateTheState\WebTestReport.xml > INFO (com.canoo.webtest.ant.WebtestTask) - Test report successfully created. > > wt.groovyTests: > > wt.parallel.waitForCompletion: > > wt.htmlReports.init: > > wt.htmlReports: > [mkdir] Created dir: C:\Downloads\build\myWebTestProject\results\resources > [copy] Copying 20 files to C:\Downloads\build\myWebTestProject\results\reso > urces > [xslt] Transforming into C:\Downloads\build\myWebTestProject\results > [xslt] Processing C:\Downloads\build\myWebTestProject\results\001_AutomateT > heState\WebTestReport.xml to C:\Downloads\build\myWebTestProject\results\001_Aut > omateTheState\WebTestReport.html > [xslt] Loading stylesheet C:\Downloads\build\resources\WebTestReport.xsl > [xslt] Transforming into C:\Downloads\build\myWebTestProject\results > [xslt] Processing C:\Downloads\build\myWebTestProject\results\001_AutomateT > heState\WebTestReport.xml to C:\Downloads\build\myWebTestProject\results\001_Aut > omateTheState\WebTestSummary.xml > [xslt] Loading stylesheet C:\Downloads\build\resources\WebTestReportSummary > Extractor.xsl > [groovyScript] Reading C:\Downloads\build\myWebTestProject\results\001_AutomateT > heState\WebTestSummary.xml > [groovyScript] Writing C:\Downloads\build\myWebTestProject\results\WebTestOvervi > ew.xml > [xslt] Processing C:\Downloads\build\myWebTestProject\results\WebTestOvervi > ew.xml to C:\Downloads\build\myWebTestProject\results\index.html > [xslt] Loading stylesheet C:\Downloads\build\resources\WebTestReportOvervie > w.xsl > > wt.openResultFile.init: > > wt.openResultFile: > [echo] Opening result file C:\Downloads\build\myWebTestProject\results\inde > x.html with cmd > > wt.junitLikeReports: > [xslt] Processing C:\Downloads\build\myWebTestProject\results\WebTestOvervi > ew.xml to C:\Downloads\build\myWebTestProject\results\WebTestOverview.junit.xml > [xslt] Loading stylesheet C:\Downloads\build\resources\WebTestOverview2JUni > t.xsl > > wt.countWebtestResults: > [countWebtestResults] 1 webtests run (successful: 1, failed: 0) > > wt.webtestMonitor.shutdown: > > wt.after.testInWork: > > wt.full: > > BUILD SUCCESSFUL > Total time: 43 seconds > > C:\Downloads\build\myWebTestProject> > > -----Original Message----- > From: webtest-admin@... [mailto:webtest-admin@...] On Behalf Of Marc Guillemot > Sent: Friday, October 16, 2009 5:05 AM > To: webtest@... > Subject: Re: [Webtest] Odd problem > > Hi, > > I don't think that it is possible to find the cause without to know your > web site. > If you use > <option name="ThrowExceptionOnScriptError" value="false" /> > then it probably means that WebTest is not able to interpret the JS code > correctly and therefore it is not a surprise that you don't get the same > results. > > An idea is to use a proxy to compare the requests that are made by > WebTest and by a normal browser. > > Cheers, > Marc. > > Alex Ignatov a écrit : >> Hey, >> >> I recently ran a test on statefarm.com which worked fine according to >> webtest (build was successful). The test goes through the auto rate >> quote on statefarm.com (about 5 pages of forms to fill out), and gets >> through all of it just fine. However, at the very end I just get to a >> page which says >> >> ***Unable to Continue* >> >> We are unable to furnish an online quote with the information provided. >> Please forward your information to a State Farm agent who can help >> determine your insurance needs. >> >> When I fill in the same information manually myself, I get an auto rate >> quote. >> >> I am wondering if someone can take a look at my script code to see if >> maybe I'm somehow filling out a field wrong? Anyone have some time to spare? >> >> >> <?xml version="1.0"?> >> >> <!DOCTYPE project SYSTEM "../dtd/Project.dtd"> >> >> <project default="test"> >> >> <target name="test"> >> >> <webtest name="Automate the State Farm auto rate quote."> >> >> <config> >> >> <option >> name="ThrowExceptionOnScriptError" value="false" /> >> >> <header name="User-Agent" >> value="Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8) >> Gecko/20051111 Firefox/1.5"/> >> >> </config> >> >> <invoke url="https://statefarm.com" >> description="Go to State Farm"/> >> >> <setInputField htmlid="sZip" value="60630" /> >> >> <clickButton htmlid="getRateQuoteGo" /> >> >> <setInputField htmlid="__SFX_UniqueID_3" >> value="Zxxzzyyiarq" /> >> >> <setInputField htmlid="__SFX_UniqueID_5" >> value="Yxxzzyyiarq" /> >> >> <setSelectField name="residenceType" value="HOME" /> >> >> <setSelectField name="homeOwnerShipStatus" >> value="OWN" /> >> >> <setInputField htmlid="__SFX_UniqueID_6" >> value="1" /> >> >> <setInputField htmlid="__SFX_UniqueID_7" >> value="1" /> >> >> <setInputField htmlid="__SFX_UniqueID_8" >> value="4951 W Winona St" /> >> >> <setInputField htmlid="__SFX_UniqueID_12" >> value="BuildValidation-It-c-2@..." /> >> >> <setInputField htmlid="__SFX_UniqueID_14" >> value="222-333-4444" /> >> >> <forceHiddenInputField >> name="CommPersonalLiabilityUmbrellaPolicy" value="N" /> >> >> <forceHiddenInputField >> name="licenseSusOrRevokedInd" value="N" /> >> >> <forceHiddenInputField >> name="driverOwnedVehicleWithOutIns" value="N" /> >> >> <forceHiddenInputField >> name="existingSFCustomerInd" value="N" /> >> >> <clickLink htmlid="buttonContinueId" /> >> >> <clickLink htmlid="yesButtonId" /> >> >> <setInputField name="driver1DateOfBirthFMT" >> value="03-01-1989" /> >> >> <forceHiddenInputField name="driver1Gender" >> value="M" /> >> >> <setSelectField name="driver1MaritalStatus" >> value="M" /> >> >> <setSelectField name="driver1EmploymentStatus" >> value="FULL-TIME" /> >> >> <setInputField htmlid="__SFX_UniqueID_9" >> value="Test Analyst" /> >> >> <setInputField htmlid="__SFX_UniqueID_10" >> value="RM665890" /> >> >> <setSelectField name="driverLicenseState" >> value="OH" /> >> >> <forceHiddenInputField >> name="driver1AccidentsLastThreeYearsInd" value="N" /> >> >> <setSelectField name="driver1MajorViolations" >> value="NONE" /> >> >> <forceHiddenInputField >> name="driver1TicketsLastThreeYearsInd" value="N" /> >> >> <clickLink htmlid="buttonContinueId" /> >> >> <forceHiddenInputField name="goodStudent" >> value="Y" /> >> >> <forceHiddenInputField name="longDistanceSchool" >> value="N" /> >> >> <clickLink htmlid="buttonContinueId" /> >> >> >> >> <forceHiddenInputField name="ymmbYear1" >> value="1993" /> >> >> <forceHiddenInputField name="ymmbMake1" >> value="CHRYSLER" /> >> >> <forceHiddenInputField name="ymmbModel1" >> value="LEBARON" /> >> >> <forceHiddenInputField name="ymmbBodyStyle1" >> value=""LE" 4D SED GAS" /> >> >> <clickLink htmlid="buttonContinueId" /> >> >> <setInputField htmlid="__SFX_UniqueID_3" >> value="5" /> >> >> <setSelectField name="guiDaysDrivenPerWeek1" >> value="5" /> >> >> <setInputField htmlid="__SFX_UniqueID_4" >> value="50,000" /> >> >> <setInputField htmlid="__SFX_UniqueID_5" >> value="9501" /> >> >> <setSelectField name="guiVehicleFinancing1" >> value="OWN" /> >> >> <forceHiddenInputField >> name="guiRegisteredOwners1:0" value="Y" /> >> >> <setSelectField name="guiTypeOfAirbag1" >> value="DUAL FRONT SEAT" /> >> >> <forceHiddenInputField >> name="guiVehicleEquippedWithAutoSeatbelts1" value="Y" /> >> >> <forceHiddenInputField >> name="guiVehicleEquippedWithAntiTheft1" value="N" /> >> >> <setInputField >> name="guiMonthAndYearPurchased1FMT" value="08-01-2005" /> >> >> <clickLink htmlid="buttonContinueId" /> >> >> <setSelectField name="guiCurrentInsCompany:0" >> value="ALLSTATE" /> >> >> <setInputField >> name="guiWithInsCompanyforYears:0FMT" value="5" /> >> >> <setSelectField >> name="guiCurrentCompBodilyInjuryLmts:0" value="25000/50000" /> >> >> >> <clickLink htmlid="buttonContinueId" /> >> >> >> >> >> </webtest> >> >> </target> >> >> </project> >> >> >> Thanks, >> >> Alex >> > > _______________________________________________ > WebTest mailing list > WebTest@... > http://lists.canoo.com/mailman/listinfo/webtest > _______________________________________________ > WebTest mailing list > WebTest@... > http://lists.canoo.com/mailman/listinfo/webtest > _______________________________________________ WebTest mailing list WebTest@... http://lists.canoo.com/mailman/listinfo/webtest |
| Free embeddable forum powered by Nabble | Forum Help |