9/16 Creating Oracle NCA Vuser Scripts

期限的最后一天 呵呵 又玩了一天多
这个部分我没有接触过,就写一些感觉上比较重要的好了
Enabling the Recording of Objects by Name
When recording an Oracle NCA script, you must record the session using object names instead of the standard object ID.
If the script is recorded using the object ID, replay will fail because the ID is generated dynamically by the server and differs between record and replay. You can verify that your script is being recorded with object names by examining the nca_connect_server statement.
nca_connect_server("199.35.107.119","9002"/*version=11i*/,"module=/d1/oracle/visappl/fnd/11.5.0/forms/US/FNDSCSGNuserid=APPLSYSPUB/PUB@VIS
fndnam=apps record=names ");
If the record=names argument does not appear in the nca_connect_server function, you are recording object IDs. You can instruct VuGen to record object names in by modifying one of the following:
➤ Startup HTML File
➤ URL to Record
➤ Forms Configuration File
Edit the startup file that is called when the applet viewer begins. Modify the line:
<PARAM name="serverArgs … fndnam=APPS">
and add the Oracle key "record=names":
<PARAM name="serverArgs … fndnam=APPS record=names">


增加这个也可以,就是红框里面的
Oracle Applications via the Personal Home Page
When launching Oracle Forms 6i applications by logging in through the Personal Home Page, you must set several system profile options at the user level. It is desirable to pass such variables at the user level, and not at the site level, where it will affect all users.
To configure the "ICX: Forms Launcher" profile:
1 Sign on to the application and select the "System Administrator" responsibility.
2 Select Profile/System from the Navigator menu.
3 Within the Find System Profile Values form:
Select the Display:Site option
Users = <your user logon> (i.e. operations, mfg, and so on)
Enter Profile =%ICX%Launch%
Click Find.
4 Update the User value to the ICX:Forms Launcher profile:
If no parameter has been passed to the URL, append the following string to the end of the URL of the user value: ?play=&record=names
If a parameter has been passed to the URL, append the following string to the end of the URL of the user value: &play=&record=names
5 Save the transaction.
6 Log out of the Oracle Forms session.
7 Log out of the Personal Home Page session.
8 Sign on again via the Personal Home Page using your username.
If you were unable to update the ICX: Forms Launcher profile option at the user level, open the Application Developer responsibility and select the Updatable option for the ICX_FORMS_LAUNCHER profile.

Correlating Oracle NCA Statements for Load Balancing

VuGen supports load balancing for multiple application servers. You correlate the HTTP return values with the nca_connect_server parameters. The Vuser then connects to the relevant server during test execution, applying load balancing.
To correlate statements for load balancing:
1 Record a multi-protocol script.
Record a multi-protocol script for Oracle NCA and Web Protocols. Perform the desired actions and save the script.
2 Define parameters for host and host arguments.
Define two variables, serverHost and serverArgs, for parameterization:
3 Call the web_url function to assign values to serverHost and serverArgs:
web_url("step_name", "URL=http://server1.merc-int.com/test.htm", LAST);
4 Modify the nca_connect_server statement from:
nca_connect_server("199.203.78.170",9000"/*version=107*/, "module=e:\\appsnca…fndnam=apps ");
to:
nca_connect_server("< serverHost >", "9000"/*version=107*/, "<serverArgs >");
web_set_max_html_param_len("512");
web_reg_save_param("serverHost", "NOTFOUND=ERROR","LB=<PARAM name=\"serverHost\" value=\"","RB=\">", LAST);
web_reg_save_param("serverArgs", "NOTFOUND=ERROR","LB=<PARAM name=\"serverArgs\" value=\"","RB=\">", LAST);

Additional Recommended Correlations

When recording an Oracle NCA session, VuGen records dynamic values—values that change for each record and replay session. Two common
dynamic arguments are icx_ticket and JServSessionIdroot.


posted on 2007-09-16 14:21  RobinGe  阅读(1045)  评论(1编辑  收藏  举报

导航