P
Patrick Spence
The C# web app we are automating for QA testing has been recently
converted to Ajax. Because of it's asynchronous nature, this has broken
all our test scripts. In order to get them to work, we resorted to
inserting a "sleep()" statement at the beginning of test method in the
test suite, certainly not an ideal solution. So, in the meantime, we're
stuck with this nonsense:
def test_0001_username()
sleep(2)
@@ie.text_field
id,'ctl00_lgnLogin_UserName').set('TEST-5038')
end
def test_0002_password()
sleep(2)
@@ie.text_field
id,'ctl00_lgnLogin_Password').set('passw0rd')
end
def test_0003_loginButton()
sleep(2)
@@ie.button
id,'ctl00_lgnLogin_LoginButton').click
end
Has anyone else run into this and what was your solution? Thanks!
converted to Ajax. Because of it's asynchronous nature, this has broken
all our test scripts. In order to get them to work, we resorted to
inserting a "sleep()" statement at the beginning of test method in the
test suite, certainly not an ideal solution. So, in the meantime, we're
stuck with this nonsense:
def test_0001_username()
sleep(2)
@@ie.text_field
end
def test_0002_password()
sleep(2)
@@ie.text_field
end
def test_0003_loginButton()
sleep(2)
@@ie.button
end
Has anyone else run into this and what was your solution? Thanks!