| || |
How to handle dynamic port number
I have recorded a script which connects to a web application and performs a transaction.
When I record the script it displays the details about to which server the connection is made and along with it displays the Port number to which the connetion is made. (team_01 = sock_connect("chn001", "team-01:2141")
When I ran the script I got an emulation command failure saying "Failed to connect to "team-01:2141" .
then I re-recorded the same script and port number displayed was different as "2353"
Each time the user tries to connect to the application the port number to which he connects is different.
I need to know how this problem of handling dynamic port number can be solved.
Re: How to handle dynamic port number
There must be a place in your script where you get the actual port number communicated.
You can then parse it out and use it for subsequent activities.
[This message has been edited by rstens (edited 09-30-2002).]