How to handle pop-up windows in Oracle NCA?
We will see step-by-step procedure of how to handle the pop-up windows while using Oracle NCA protocol:
- Put the title of the pop-up window in nca_obj_status function.
- Find out where the pop-up is occurring, put the handling statement below it.
- The handling statement could be nca_popup_message_press or nca_message_box_press. To find out which function is suitable for your script, record a script using data that generates that popup window, click on the button and check which function gets recorded.
Example:
This piece of code will trigger a pop-up:
nca_set_window( "PopUpObjects");nca_lov_retrieve_items("PopUpObjects",1,20);nca_lov_select_item("PopUpObjects","POP UP NOTIFICATIONS");
If title of the window is “Warning”, put it inside the nca_obj_status function. The code would be something like-
int status;status=nca_obj_status("Warning");if (status = = 0)nca_popup_message_press("Warning","OK");// nca_message_box_press("Forms",1); Any one of them
If you are planning to use LoadRunner with Oracle NCA protocol and QTP on same machine…read this
Be prepared for a Internet Explorer conflict if you are using HP-LoadRunner with Oracle NCA protocol and QTP on a same machine. QTP requires that the option Enable third-party browser extensions under Internet Options > Advanced should be enabled (mandatory while working with Web-Addin)
On the other hand if you try to record a scenario in HP-LoadRunner with NCA protocol the browser will crash just at the place where it launch the applets, the work-around for this problem was to disable Enable third-party browser extensions.!!!
So there we are, two tools from the same company, one needs and the other fails on the same option.
Can we call this a bug with LoadRunner Oracle NCA protocol? or Am I missing something here? What do you say?
