I expand my tree of a RCP application with the jubula module "ub_tre_expandNode_byIndexpath". My application has to load the trees nodes from a database so it takes a few seconds (2-5s) to expand the nodes of a tree. If i want to go to the next step in my test case, which needs the expanded node, the error occurs: "Node not found" because it is not loaded yet. I am using a work around by using the jubula module "ub_app_wait". By waiting 8000 milliseconds, my application has enough time to load the node of the tree.
Is there a possibilty in jubula to go on with the test case right now if the node is loaded similar to the jubula module "up_app_waitForWindow"?
You can use ub_tre_checkExistenceOfNode_byIndexpath, and to the test case in which you're calling it, add ub_app_wait as an event handler with event type = "Check Failed" and reentry type = "RETRY". For example, if you wanted to check for the node once each second for 8 seconds, you could specify 8 as the number of retries, and 1000 ms as the duration of the ub_app_wait.