Sebb, I don´t know why when I read the url from my file, I am not able to start reading from the 1st line in the file. It is like __StringFromFile always read one line at the stat of the the Jmeter Scenario and after loose my 1st line in the file.
Look I send you jmx of jmeter 2.5. My file is : /mcm_portal/decorations/portlet/NoSkin/css/styles.css /mcm_portal/decorations/layout/pcBookPortal/html/css/PcBookPortalStyle.css1 /mcm_portal/decorations/layout/pcBookPortal/html/css/PcBookPortalStyle.css2 /mcm_portal/decorations/layout/pcBookPortal/html/css/PcBookPortalStyle.css3 But my 1st request is always : /mcm_portal/decorations/layout/pcBookPortal/html/css/PcBookPortalStyle.css1 And not the 1st line in the file, I will do a trick adding a fake line in my file, but I think there is something wrong in the execution of __StringFromFile Regrads, Toni. 2011/10/25 Toni Menendez Lopez <[email protected]> > Solved with __StringFromFile(). > > Now I need to do the same for a long number of files and inputs in a file. > I don´t know if reading from file each request can download dramatically the > performance of Jmeter, this is why I want to load all values in memory. > > For each request I am going to read the URL from a file. > > > Toni. > > 2011/10/25 sebb <[email protected]> > >> On 25 October 2011 11:43, Toni Menendez Lopez <[email protected]> >> wrote: >> > The thing is that I want to execute a loop in the same thread with all >> > values inside this file ( same as if I have done a regex ), with "CSV >> Data >> > Set Config" the varaible it is not modified until I restart a new >> thread. >> >> So why mention file I/O as being the problem? >> That is a completely different matter. >> >> > This is my scenario >> > >> > -ThreadGroup >> > -While not end of file >> > -- request with url inside the file >> > >> > I tried "CSV Data Set Config" and all requests inside the WHILE are the >> > same, and only modifyied when the next thread is restarted. >> >> Where did you place the CSV Data Set? >> >> You can use the __StringFromFile() function if you don't require the >> data to be in memory. >> >> > Toni. >> > >> > 2011/10/25 sebb <[email protected]> >> > >> >> On 25 October 2011 10:55, Toni Menendez Lopez <[email protected]> >> wrote: >> >> > Hello all, >> >> > >> >> > I send this just to know if someone has done something similar to the >> >> next, >> >> > >> >> > I have 3 files with 20 inputs, and these inputs are used in my >> jmeter >> >> > Scenario, and in order to avoid I/O with high Load I want to save all >> >> input >> >> > in a variable in memory to use later in a foreach. >> >> >> >> Are you sure you need to load the files into memory? >> >> Have you tried using CSV Data Set Config? >> >> >> >> > Do you know how to generate a on memory variable based in a File ( >> >> similar >> >> > to variables generated with regex extractors ? ) >> >> >> >> The function >> >> >> >> http://jakarta.apache.org/jmeter/usermanual/functions.html#__CSVRead >> >> >> >> reads the file into memory. >> >> > Thanks, >> >> > >> >> > Toni. >> >> > >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [email protected] >> >> For additional commands, e-mail: [email protected] >> >> >> >> >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> >
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

