Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » Web Tests: 'Check Text' Test fails
Web Tests: 'Check Text' Test fails [message #1759052] Wed, 05 April 2017 15:20 Go to next message
Kev James is currently offline Kev JamesFriend
Messages: 21
Registered: November 2014
Junior Member
Hi all,
I'm using the Web Testing with Firefox - Jubula 8.4.1.123

There's a button in my application that doubles as 'Edit' and 'Save'. When the page first loads, the text in the button is 'Edit' and all the fields are read-only. When you click the button, the text changes to 'Save' and all the fields can be edited. When you click 'Save' the results are saved and the button text reverts to 'Edit'

Now, in my test where I have
Button Component/Click
Button Component/Check Text/equals 'Save' (timeout=2000)

it works fine, I get a check mark against both steps. Later, after changing some values, I have
Button Component/Click
Button Component/Check Text/equals 'Edit' (timeout=10000)

This second Check Text steps comes back ( after about 0.4 seconds ) as 'Check Failed'. In the browser the action has completed successfully; the button text has changed.

Am I doing something wrong here, or is it a bug? The heuristic match on the component is 90%

Cheers,
KEv.

Re: Web Tests: 'Check Text' Test fails [message #1759160 is a reply to message #1759052] Fri, 07 April 2017 07:17 Go to previous messageGo to next message
Marvin Mueller is currently offline Marvin MuellerFriend
Messages: 119
Registered: March 2012
Senior Member
Hello,

At this moment, the timeout is not implemented for the HTML toolkit, so it is handled like the timeout would be 0.
If you want to do this by your own, you can also use a retry event handler(for check failed) in which only a wait is used[1]. Then the check will be retried and the event handler has waits in between.

[1]https://testing.bredex.de/files/content/software/documentation/userManual/tasks/ch03s27s04.html

regards,
Marvin
Re: Web Tests: 'Check Text' Test fails [message #1759497 is a reply to message #1759160] Wed, 12 April 2017 10:16 Go to previous message
Kev James is currently offline Kev JamesFriend
Messages: 21
Registered: November 2014
Junior Member
Thanks Marvin - I worked around it with a (HTML) Locator -> Wait for component, which does seem to honour the timeout setting.
Previous Topic:How to save a PDF file opened in Adobe reader in some other location
Next Topic:How to select a checkbox which is inside a Graphics Component
Goto Forum:
  


Current Time: Thu Nov 15 03:42:45 GMT 2018

Powered by FUDForum. Page generated in 0.02427 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top