Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsCan't have 2 Check component text event handlers
https://www.eclipse.org/forums/index.php/mv/msg/366367/891738/#msg_891738
this works great
the problem is when I try to add another one like this for some other page later on in the wizard, I only get 3 options for type. I dont get the option "check fails"]]>Daniel Vasilev2012-06-25T16:50:56-00:00Re: Can't have 2 Check component text event handlers
https://www.eclipse.org/forums/index.php/mv/msg/366367/892124/#msg_892124
You can read about the concepts behind event handlers in the user manual.
You can only have one event handler per type per Test Case. What you are trying to do sounds like an excellent candidate for making a separate Test Case that contains step and the event handler, then reusing this Test Case wherever you need it.
HTH,
Alex]]>Alexandra Schladebeck2012-06-27T07:26:13-00:00Re: Can't have 2 Check component text event handlers
https://www.eclipse.org/forums/index.php/mv/msg/366367/892328/#msg_892328
I got what you are saying, I created two test cases that I called "Check if X page reached" "Check if y page reached" and they only have the "ub_ctx_checkText" action in them with an event handler for each that in case of a failure will click "next" and in case its good it will simply continue with the test.
(I am writing this long reply for future users that might search this up when trying to figure out how to do this )
and it works very well.
Thank you for the help.]]>Daniel Vasilev2012-06-27T18:00:14-00:00Re: Can't have 2 Check component text event handlers
https://www.eclipse.org/forums/index.php/mv/msg/366367/892412/#msg_892412
Glad it's working One tip - do you really need *two* separate Test Cases? If they do the same thing, then one Test Case should be enough - you can parametrize the data you want to check, and "reassign" the component names so the same Test Case can deal with different data and components when you reuse it