I had issues with the space betweent the input and the quotations before in 
several tests...  maybe give that a shot...?
 
DTops

--- On Thu, 10/15/09, Alex Ignatov <[email protected]> wrote:


From: Alex Ignatov <[email protected]>
Subject: [Webtest] Odd problem
To: [email protected]
Date: Thursday, October 15, 2009, 2:58 PM



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="[email protected]" />
                        <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="&quot;LE&quot; 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

Reply via email to