You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Tonimenen <to...@gmail.com> on 2011/11/02 22:06:18 UTC
Re: generate variable from file
I manage to solve the issue, I changed the variable assignation for SFF from UDV, to User Parameter Preprocessor and now works perfect.
Anyway, just for next time do you know a good place send the JMX if it is necessary ?
Thanks for the help,
Toni
El 31/10/2011, a las 23:57, sebb <se...@gmail.com> escribió:
> On 27 October 2011 21:58, Tonimenen <to...@gmail.com> wrote:
>> Sebb,
>>
>> Have you been able to see why _StringFromFile misses the first input of the file ? Am I doing anything wrong in my jmx ?
>
> No, because I don't know what your JMX looks like.
>
> Don't send it to the list; upload it somewhere public and post the URL.
>
>> Thanks in advance,
>>
>> Toni
>>
>>
>> Enviado desde mi iPad
>>
>> El 25/10/2011, a las 20:28, Toni Menendez Lopez <to...@gmail.com> escribió:
>>
>>> 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 <to...@gmail.com>
>>> 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 <se...@gmail.com>
>>> On 25 October 2011 11:43, Toni Menendez Lopez <to...@gmail.com> 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 <se...@gmail.com>
>>>>
>>>>> On 25 October 2011 10:55, Toni Menendez Lopez <to...@gmail.com> 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: jmeter-user-unsubscribe@jakarta.apache.org
>>>>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>>>>
>>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>>
>>>
>>>
>>> <Star-Up.jmx>
>>> <Loop.png>
>>> <counter.png>
>>> <HTTPRequest.png>
>>> <StringFromFile.png>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org