I need to stress a web application but I need to use an input file with the inputs to one form, i need some virtual users use different inptus
How can I use this file to assign input to the script??
Also I am checking some results in the page
I am using the load response command
LOAD RESPONSE_INFO BODY ON 1 INTO RESPUESTA , WITH 'HTML(0)/BODY(1)/FORM(0)/P(3)/SPAN(0):ATTRIBUTE:id(0)'
how can I put the current tcp connection on the command
I am using the latest version of OpenSTA (126.96.36.199)
Re: Input file
You have two ways to do this:
1. Create a variable and define the access to the database where those users are. Or if you a have a list of users then just assign that file to be read by the script.
2. If you use the DOM to access values, then you will be getting something that is returned by the web server. If every time you load a web page that value is different then you can use the DOM of the response.
In your example you used RESPUESTA as a variable, that variable will be usde later in your script, but if you need that variable to have different values and read from a file, then you need to create a variable manually instead using DOM.
Hope this helps.