Performance Center Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Oracle NCA protocol scripting challange

Highlighted
parkar
Honored Contributor

Oracle NCA protocol scripting challange

Hi Experts,

we are having the scripts for oracle nca + web(http/html) protocol in vugen 9.1

but the problem is we are not able to put the function like web_reg_find in oracle nca protocol

can any one suggest how we put the functions like web_reg_find in the scripts

pls find below script code for reference

lr_end_transaction("login_page",LR_AUTO);

nca_set_window("Login");

nca_button_press("38");

nca_set_window("Division");

nca_lov_retrieve_items("Division", 1, 3);

nca_lov_select_item("Division", "HDFC - RAPG");

nca_set_window("Login");

nca_edit_set("39", "HPBAC");

nca_obj_type("39", '\t', 0);

// lr_message("aa-->%s",lr_eval_string("4caeed1db4734ab3cfffd246f8d3"));

nca_edit_set("40", lr_decrypt(lr_eval_string("4d01d2b3a31783f1e56156b682")));

nca_obj_type("40", '\t', 0);

lr_start_transaction("post_login");

nca_edit_set("41", "MUMBAI");

nca_button_press("42");

nca_message_box_press("Acknowledge", 1);

lr_end_transaction("post_login",LR_AUTO);

lr_start_transaction("lending_page");

lr_think_time(16);

nca_set_window("Please Go Through Your Appropriate Section");

nca_button_press("82");

lr_end_transaction("lending_page",LR_AUTO);

lr_start_transaction("amortization_schedule_page");

nca_set_window(" ");

nca_menu_select_item(" ", "Customer Services;Customer Service page;Amortization Schedule");

lr_end_transaction("amortization_schedule_page",LR_AUTO);

lr_think_time(6);

nca_set_window("Repayment Schedule");

nca_button_press("212");

lr_start_transaction("stmt_of_acconts_page");

nca_set_window(" ");

nca_menu_select_item(" ", "Customer Services;Customer Service page;Statement Of Account");

lr_end_transaction("stmt_of_acconts_page",LR_AUTO);

nca_set_window("Statement Of Account");

nca_button_press("246");

lr_start_transaction("loan_viewer_page");

nca_set_window(" ");

nca_menu_select_item(" ", "Customer Services;Customer Service page;Loan Viewer");

lr_end_transaction("loan_viewer_page",LR_AUTO);

lr_think_time(4);

nca_set_window("Loan Query (View)");
Cheers!

Nvr Blame a day in ur life....... Good day gives "happiness" & Bad day gives "experience" ......
5 REPLIES
KMadan
HPE Expert

Re: Oracle NCA protocol scripting challange

There are multiple utility functions which you can use to achieve this. nca_obj/win_get_info, nca_java_get_val etc. Using these functions is not trivial but some effort needed and not as simple as web protocol.
parkar
Honored Contributor

Re: Oracle NCA protocol scripting challange

Thanks madan for info..

one more query when we recorded two scripts for the same flow everytime
nca_button_press("246"); value gets changes

when we tried to copy certain set of trnsactions into another script gets failed.

How this nca_button_press("246") works?
Is that any vugen specific replay engine logic applied

Please suggest

Thanks
Cheers!

Nvr Blame a day in ur life....... Good day gives "happiness" & Bad day gives "experience" ......
parkar
Honored Contributor

Re: Oracle NCA protocol scripting challange

any updates
Cheers!

Nvr Blame a day in ur life....... Good day gives "happiness" & Bad day gives "experience" ......
Rag009
Acclaimed Contributor

Re: Oracle NCA protocol scripting challange

Guys this the issue with server settings., u need to add "record = names" to get the corresponding object names.

So, add the above statement in server side config file to get static object names instead of those dynamic numbers :)

Narendra_Sure
Acclaimed Contributor

Re: Oracle NCA protocol scripting challange

refer to the help file with NCA functions.

 

nca_get* functions will help you to get the name of the objects or the dialog boxes.

 

if you have to put a text check on the window you on, do it like this

 

char* Getwin;

 

nca_get_top_window(GetWin);

 

the above fun will giveyou the name of the window you are on.

 

now you can use the core C functionalities like strstr or strcmp to do a comparision with the window

 

eg: if(strcmp("<windowname>",Getwin) ==0)

 

{ lr_error_message("Encounterd a wrong window");

lr_exit(

LR_EXIT_ITERATION_
AND_CONTINUE 

);

}

 

Hope this helps.

 

Regards
Naren

//Add this to "OnDomLoad" event