This tutorial describes how to design a virtual user executing iterations on Oracle Forms requests. It presents an actual case using NeoLoad on an Oracle Forms demo application. It describes in detail how to create a virtual user that repeats a same business transaction several times over.
To gain the most from this tutorial, it is recommended to have read the "Oracle Forms User Guide".
With NeoLoad, designing a scenario for an Oracle Forms application is very quick. Where the Oracle Forms application's usage requires that a dynamic element be added, NeoLoad allows you to use logical actions, in particular the inclusion of a loop in the virtual user design.
With an Oracle Forms application, it is vital to take this
requirement into account in the initial phases of the scenario design. In
the next sections, we shall look in detail at the best practices to be
observed, using iOrganizer, a demo application for the
Oracle Forms 10g server.
In this case, we're going to use the iOrganizer
application, one of the demo applications for the Oracle Forms 10g
server.
The demo applications can be downloaded at the following URL:
http://www.oracle.com/technology/sample_code/products/forms/index.html,
in the Oracle Forms 10gR2 Demos section. Once the
applications have been installed on your Oracle Forms server, connect to
the following URL:
http://<server>:8889/forms/frmservlet?config=iorg
where <server> is the name of the Oracle Forms
server's host machine.

To be able to connect to the iOrganizer
application, you need to create a user account.
Procedure 16.8. Create a user account
Go to the following URL:
http://<server>:8889/forms/frmservlet?config=iorg
where <server> is the name of the Oracle
Forms server's host machine
Click on Register.
A new page entitled New User Page is
displayed. Fill in the following information:
First Name:
Demo
Last Name:
User
Password:
NEOLOAD
Phone:
0123456789
Email:
demouser@test.com

Click Save ( icon
) then on Return to main
page ( icon
).
In the iOrganizer application's login
screen, enter DUSER in the
Login field and NEOLOAD in the
Password field.
Click Enter. If the connection is
successful, the application's main screen should be
displayed.
Click on the Exit Calendar button (
icon
).
Before you can record the Oracle Forms scenario, NeoLoad needs the file containing the Oracle Forms applet. See the procedure for configuring NeoLoad.
NeoLoad supports Oracle Forms component naming. Component naming must be configured on the Oracle Forms server itself.
You can check to see if the server is correctly configured by referring to the procedure for checking the Oracle Forms server.
If the server is not configured correctly, please follow the procedure for configuring the Oracle Forms server.
Procedure 16.9. Recording
In NeoLoad, click on Record / Start
recording.
Name the virtual user AddressCreator.
Check the Delete cookies and Clear
cache options.
Go to the following URL:
http://<server>:8889/forms/frmservlet?config=iorg
where <server> is the name of the Oracle
Forms server's host machine. The Oracle Forms Applet is
loading.
In the NeoLoad Recording Toolbar, enter
AddressCreator_Login.
In the iOrganizer application's login screen,
enter DUSER in the Login field
and NEOLOAD in the Password
field.
Click Enter.
In the toolbar,click on Address Book (
icon).
In the NeoLoad Recording Toolbar, enter
AddressCreator_Create.
Still in the toolbar, click on Create (
icon).
Return to the application and fill in the following information:
First Name:
DFirst
Last Name:
DLAST
Business Phone:
002233445566

Click Save (
icon), then on Return to Main
Page (
icon).
In the NeoLoad Recording Toolbar, enter
AddressCreator_Validate.
Return to the application and click on the letter D (at the bottom). The new entry created in the address book should now be displayed.
In the NeoLoad Recording Toolbar, enter
AddressCreator_Logout.
Click on Return to Main Page (
icon), then click the Exit
Calendar button (
icon).
Close the browser and go back into NeoLoad
Click the Finish button.
In NeoLoad, click on Edit / Variables.
Click the New variable button.
Select List in the list of variable
types.
Enter Contacts in the Name
field.
Double-click on the Add a column
button.
Rename the columns as follows: FirstName,
LastName, BusinessPhone
Double-click on the Add a value
button.
Fill in the rows as follows:
First row: FirstName:
John, LastName:
DOE, BusinessPhone:
0011221100
Second row: FirstName:
Jack, LastName:
SPARROW, BusinessPhone:
6666006666
Third row: FirstName:
Bruce, LastName:
SCOTT, BusinessPhone:
1524323256
![]() | Note |
|---|---|
The input is case-sensitive. Failure to input the correct case may cause the Oracle Forms application to block the creation of the entry in the database. |
In the Value change policy section, select
For each virtual user.
In the Variable scope section, select
Local,. each virtual
user instance iterates on each value

Click OK once, and then again .
In the Virtual Users tree, expand the
container AddressCreator_Create then the page named
address_book_first_name_0:value=dfirst. Click on
the request with the same name.
In the request's XML editor, replace DFirst
with ${Contacts.FirstName}. Then click on
Apply.
Repeat the operation for the request named
address_book_last_name_0:value=dlast, this time
replacing DLAST with
${Contacts.LastName}.
Repeat the operation again for the request named
address_book_business_phone_0:value=002233445...
replacing 002233445566 with
${Contacts.BusinessPhone}.
Procedure 16.10. Adding iterations for the user AddressCreator
In NeoLoad, click on the Virtual Users
tab.
In the actions (bottom left, expand if necessary), drag and drop
the Loop logical action to a position just before
the AddressCreator_Create container.
Select the AddressCreator_Create and
AddressCreator_Validate containers and drag them
inside the loop (named loop).
Click on loop. Enter the value 3 in the
Execute the loop field.
In the actions, drag and drop the Variable
Modifier logical action to a position just after the
AddressCreator_Validate container.
Click on variable_modifier. Enter
Contacts in the Variable name
field.
The virtual user should look like this:

The Oracle Forms applet often issues requests that result in an HTTP 404 error on the server. Therefore, you will need to tell NeoLoad not to count these as errors by using the following procedure:
Procedure 16.11. Ignore HTTP 404 errors in the recording
In NeoLoad, click on Edit /
Preferences.
Click on the Project settings tab.
Select the Runtime parameters
category.
Check the option Do not mark the specified HTTP error
code when the same error occurs during the record.
Click OK to confirm the setting.
In NeoLoad, click on Run / Start
checking.
Click the Advanced button.
Check the Play thinktime option.
Click OK in the dialog box to confirm the
setting.
Select the virtual user
.AddressCreator
Click the Start checking button. The virtual
user executes with the same think times as in the recording.
Once the virtual user has stopped, you may re-connect to the
iOrganizer application to check that the contacts have been created
(search the 'D' entries for DOE, and 'S' for
SPARROW and SCOTT).


Using this scenario, you can add substance to the test by:
Recording and playing back the creation of different user accounts
Using several user accounts to run a load test
Adding clicks on the entries created then configuring a validation on the response. This will make sure that the entries are always created correctly during the load test.