[Webtest] Asynchronous requests: how to track?

Andrew Sickorsky andrew.sickorsky@texunatech.com
Mon, 27 Aug 2007 12:34:36 +0400


This is a multi-part message in MIME format.
--------------080802020303070508020508
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hello, all!
  I've experiencing some problems with testing asynchronous jobs: in our 
sysiem under tests (SUT) user can choose file to upload, and than this 
file is uploaded in asynchronous manner. This process reflects on the 
float div and finishes with corresponded message. Is there any way to 
trac this process and track the finel message?  For now I try to use 
<sleep > in a <retry> construction to wait proper message, but this 
makes no sence:

<clickLink label="Import from Excel" description="Open dialog for 
additional Excel upload"/>
<setFileField xpath="//div[@id='upload']//input[@type='file']" 
fileName="${analysis-test-web.dir}/testdata/${excel.name}"/>
<clickElement xpath="//div[@id='upload']//input[@class='upload-button']" 
description="click on upload button"/>
<sleep seconds = "3"/>
<retry maxcount="25" description="wait while spreadsheet is importing">
    <not>
        <verifyText text="Please wait while your feed is being imported."/>
    </not>
    <sleep seconds="6"/>
</retry>

  To clarify the problem you can look into http://demo.bitcut.com 
(pre-beta release, feel free to test it, nothing terrible happens) and 
try to upload excel with several columns

--------------080802020303070508020508
Content-Type: text/x-vcard; charset=utf-8;
 name="andrew.sickorsky.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="andrew.sickorsky.vcf"

YmVnaW46dmNhcmQNCmZuOkFuZHJldyBTaWNrb3Jza3kNCm46U2lja29yc2t5O0FuZHJldw0K
b3JnOlRleHVuYSBUZWNoIEx0ZC4NCmFkcjtkb206OztNYWdpc3RyYWxuYXlhIHN0cmVldCwg
NSAtIDMzO01vc2Nvdw0KZW1haWw7aW50ZXJuZXQ6YW5kcmV3LnNpY2tvcnNreUB0ZXh1bmF0
ZWNoLmNvbQ0KdGl0bGU6VGVzdGVyDQp0ZWw7d29yazorNyA0OTUgOTgwOTA2Nw0KdGVsO2Nl
bGw6KzcgOTA5IDkwNzAzMjgNCngtbW96aWxsYS1odG1sOlRSVUUNCnVybDp3d3cudGV4dW5h
dGVjaC5jb20NCnZlcnNpb246Mi4xDQplbmQ6dmNhcmQNCg0K
--------------080802020303070508020508--