Lee_M
4 years agoCommunity Hero
Custom event
Can I assign a custom event ? I have an input process that spans a couple of screens, I have written a test case for every step (so that we run any steps needed) Now the developer has added a...
Hi,
Without knowing any details about tested application, this is my personal opinion:
a) It is not a big deal to add one function call in ten places. Also this might be a good reason to refactor existing code. For example, replace the click over the 'Next' button with the call to, say, proceedNext() function. In this function perform click on the button and check if confirmation window appears. Handle it if it appears;
b) Depending on the type of tested application and notification window: you may consider OnUnexpectedWindow event that will trigger for desktop application if test code tries to interact (click, activate, set focus) with UI element that is blocked by some other window. If this is your case you may just handle this confirmation window within event handler's code.
Hi,
I am suggesting that there are too many scripts to augment and am looking for a wildcard event trigger
ie.
test runs successfully
browser now wants an update but am unable to due to security policy
I am looking for a wildcard or regex triggered event
if script = (login.*|.*navigate_to.*) then
dismiss update popup
or if event = update popup
dismiss update popup
not as generic as "OnStartTest"