I am trying to verify the error message in a popup dialog box, but got http 500 
error for the clickbutton step in the script.  Here is the web site I am 
testing - 
http://www.biohealthbase.org/GSearch/mycobacterium_gene_search.do?method=ShowCleanSearch&decorator=Mycobacterium

When entering "abc" in the section 3 "Start" textbox, then clicking go, the 
system will pop up an error message.  I have the following script to verify it -
<setSelectField
        description="select genomic location from list"
        name="strand" 
        value="both" />
<setInputField
        description="enter an alpha character in the end location"
        name="start"
        value="abc" />
<expectDialogs description="set up pop up message expections">
        <alert 
        description="expect alert with save of dialog message"
        saveProperty="simpleDialog" />
</expectDialogs>
<clickButton label="Go"/>
<verifyProperty
        name="simpleDialog"
        regex="true"
        text="End must be an integer" /> 
Thanks,
Xiaomei


      
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to