Professional Documents
Culture Documents
Opensta
Opensta
Opensta
Reg Edit...................................................................................................................................3
Example :-.................................................................................................................................4
Distributed Testing..........................................................................................................5
Type 1 – Load Generator from Single Machine.......................................................................5
Type 2 – Load Generator From Multiple Machines....................................................................5
Parameterization in OPENSTA:...............................................................................6
Next Passwd..............................................................................................................................6
Checkpoint in OPENSTA...............................................................................................8
TEMP FOLDER...................................................................................................................13
COMMANDS........................................................................................................................14
Retry :- We can use Retry command for any Request........................................................14
LOCATE Command:.............................................................................................................14
Returns an integer value.........................................................................................................14
Substring.................................................................................................................................14
String.......................................................................................................................................14
Case Blind (optional).................................................................................................................14
Example..................................................................................................................................14
Output.....................................................................................................................................14
Reg Edit
Create the TCP parameters in Reg edit for reducing OPENSTA issues like
10048,10054,10038 …
KeepAliveInterval 10000(decimal)
KeepaliveTime 7200000(Decimal)
Maxuserport 32768 (Decimal)
TcpKeepTries 20 (Decimal)
TcpMaxConnectAttempts 20 (decimal)
TcpMaxConnectRetransmissions 10 (decimal)
TcpMaxDataRetransmissions 10 (decimal)
TcpTimedWaitDelay 30 (decimal)
TcpWindowSize 64240 (decimal)
Example :-
Error 10048 Address already in use "in the error log for the execution:
We must change the TCP / IP as the system prevents OpenSTA to allocate more sockets
for the connections. It is possible to act on 2 parameters and modified in the registry:
MaxUserPort
Description: Sets the port number is greater than TCP / IP can be allocated when an
application requires a user port available on the system.
TcpTimedWaitDelay
Description: it is more advantageous in terms of cost to reopen the connection on the
client and server to establish a new connection. If you reduce the value of this entry, TCP
/ IP can release soon closed connections and provide more resources for new connections .
2. Choose the decimal value 30, which corresponds to the hexadecimal value
0x0000001e. This sets the timeout to 30 seconds.
Distributed Testing
Type 1 – Load Generator from Single Machine
Step 1 – Select the NameServer Active / Inactive Icon in Right Nav Bottom of the System
Step 2 – Right Click The Configure menu. & By default it is showing IP or Computer Name
Step 1 – Select the NameServer Active / Inactive Icon in Right Nav Bottom of the System
Step 2 – Right Click The Configure menu
Step 3 – Enter the Repository Host as Parent Level Machine IP or Computer Name
Step 4 – Restart The NameServer
Parameterization in OPENSTA:
1.In Script modeler Locate the Primary Post URI where login details are passed.
2.Insert mutex locking before the Primary Post URI in which login details are passed.
5.Replace the hard coded username password values with the Local variables.
6.Compile the script and do syntax check. Replay the script in script modeler to verify
whether values username and password are assigned to Local variables.
2.On the right side HTML view of the response will be loaded. Select Html Tree pane
and search for the string “Start Date” by right click on the pane.
3.Click on the corresponding HTML DOM Element and right click and select address.
4.Enter a variable name for the DOM element and click OK.
5. A character variable “Start Date” is automatically created and start date string response
is loaded into the variable by the Load response_info command.
6.Insert Checkpoint to check whether the DOM element variable contains “Start Date” and
report Pass or Fail status.
7.Compile the script and Replay in script modeler to verify the Test Results which can be
seen in Replay Log.
TEMP FOLDER
Step 1 : Shutdown the Nameserver.
Step 2 : Goto Opensta\Engines\Temp\
Step 3 : Delete All files except opensta.org in Temp folder
Step 4 : Restart the Nameserver
COMMANDS
Retry :- We can use Retry command for any Request
Example :-If the login Request is failed .We can use this command for attempting the
Login Request for n-number of times
Pragma:-We can use Pragma for without getting request in cache.It is sending a
request directly to server
LOCATE Command:
Syntax :
~Locate(substring,string),Case_Blind
Substring
The character variable or quoted character string to be searched for in the string
String
The character variable or quoted character string in which substring is to be searched
Example
Output
Offset= -1 , if not found
Offset = 11, if found (11 being the offset value of the substring in the string)