You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Sheetal Jharia Baru <sh...@gmail.com> on 2016/03/02 20:05:39 UTC

Re: How can we create .jmx file without using GUI ?

Hi ,
I finally got UI enabled on ubuntu, created the test plan using UI and
executed it using CLI. This worked !

I am using OS Sampler to execute a shell script on my local system. This
script in turn downloads a image from remote repository. As expected , when
the script is run multiple times, same image is downloaded. Is there a way
that each thread can download a different image (can image become some sort
of variable and I can give different names to this variable for each
thread) ?
Any help is appreciated. Thanks !

On Mon, Feb 22, 2016 at 5:34 AM, Mark Miller <ma...@gmail.com>
wrote:

> I move test plans between OSX and Windows regularly without issue. That is
> a significant version difference. Come up to latest on Ubuntu. Check you
> JRE versions are reasonable too. Should work assuming nothing platform
> special in your test plan.
>
> m
>
> On Sun, Feb 21, 2016, 12:00 Sheetal Jharia Baru <sh...@gmail.com>
> wrote:
>
> > Hi Mark,
> > I did the same. On my windows installed jmeter and created the test plan
> > using OS Sampler.
> > I then transferred the .jmx file to my ubuntu system and ran the command
> > "jmeter -n -t /root/testDock.jmx -l testresult.jtl" and get this error:
> >
> > *Error in NonGUIDriver java.lang.NullPointerException*
> >
> > Could it be because I have slightly different versions on Win and
> Ubunbtu?
> > Win : 2.13 r1665067
> > Ubuntu : Version 2.8.20130705
> >
> > Thanks for your help.
> >
> > On Sun, Feb 21, 2016 at 3:44 AM, Mark Miller <ma...@gmail.com>
> > wrote:
> >
> > > It seems more practical, to me, to develop your test plan in an
> > environment
> > > where you have the support of the UI. Then move your test plan (.jmx)
> to
> > > the ubuntu machine and invoke that test with -n (headless) and the
> other
> > > logging params etc. so that you can review your results from that
> > context.
> > >
> > > I'm sure it's possible to initiate a jmx file without the benefit of
> the
> > > UI, but you'd only approach doing so from a place of general mastery
> with
> > > JMeter (my opinion).
> > >
> > > Hope that helps.
> > >
> > > Mark
> > >
> > > On Sat, Feb 20, 2016 at 11:25 AM Richard Friedman <ri...@redline13.com>
> > > wrote:
> > >
> > > > Why not use the OS Sampler?
> > > >
> > > >
> > >
> >
> http://jmeter.apache.org/usermanual/component_reference.html#OS_Process_Sampler
> > > >
> > > > Here is a quick one I just created.
> > > >
> > > >
> > > >
> > > > On Sat, Feb 20, 2016 at 12:57 PM, Sheetal Jharia Baru <
> > > sheetal93@gmail.com
> > > > > wrote:
> > > >
> > > >> Hi,
> > > >> I have installed Jmeter on my ubuntu machine which doesnt have UI
> > > enabled.
> > > >> I know I can run jmeter on CLI but I would need to create the .jmx
> > file
> > > >> for
> > > >> running the shell script/command which I want to test.
> > > >> Any sample .jmx fle which can run a command on shell will be
> helpful.
> > I
> > > >> can
> > > >> make appropriate changes to it as per my environment.
> > > >>
> > > >> Thanks for the help !
> > > >>
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> > > > For additional commands, e-mail: user-help@jmeter.apache.org
> > >
> >
>

Re: How can we create .jmx file without using GUI ?

Posted by sebb <se...@gmail.com>.
On 2 March 2016 at 19:05, Sheetal Jharia Baru <sh...@gmail.com> wrote:
> Hi ,
> I finally got UI enabled on ubuntu, created the test plan using UI and
> executed it using CLI. This worked !
>
> I am using OS Sampler to execute a shell script on my local system. This
> script in turn downloads a image from remote repository. As expected , when
> the script is run multiple times, same image is downloaded. Is there a way
> that each thread can download a different image (can image become some sort
> of variable and I can give different names to this variable for each
> thread) ?
> Any help is appreciated. Thanks !

Please start a new thread for a new problem.

> On Mon, Feb 22, 2016 at 5:34 AM, Mark Miller <ma...@gmail.com>
> wrote:
>
>> I move test plans between OSX and Windows regularly without issue. That is
>> a significant version difference. Come up to latest on Ubuntu. Check you
>> JRE versions are reasonable too. Should work assuming nothing platform
>> special in your test plan.
>>
>> m
>>
>> On Sun, Feb 21, 2016, 12:00 Sheetal Jharia Baru <sh...@gmail.com>
>> wrote:
>>
>> > Hi Mark,
>> > I did the same. On my windows installed jmeter and created the test plan
>> > using OS Sampler.
>> > I then transferred the .jmx file to my ubuntu system and ran the command
>> > "jmeter -n -t /root/testDock.jmx -l testresult.jtl" and get this error:
>> >
>> > *Error in NonGUIDriver java.lang.NullPointerException*
>> >
>> > Could it be because I have slightly different versions on Win and
>> Ubunbtu?
>> > Win : 2.13 r1665067
>> > Ubuntu : Version 2.8.20130705
>> >
>> > Thanks for your help.
>> >
>> > On Sun, Feb 21, 2016 at 3:44 AM, Mark Miller <ma...@gmail.com>
>> > wrote:
>> >
>> > > It seems more practical, to me, to develop your test plan in an
>> > environment
>> > > where you have the support of the UI. Then move your test plan (.jmx)
>> to
>> > > the ubuntu machine and invoke that test with -n (headless) and the
>> other
>> > > logging params etc. so that you can review your results from that
>> > context.
>> > >
>> > > I'm sure it's possible to initiate a jmx file without the benefit of
>> the
>> > > UI, but you'd only approach doing so from a place of general mastery
>> with
>> > > JMeter (my opinion).
>> > >
>> > > Hope that helps.
>> > >
>> > > Mark
>> > >
>> > > On Sat, Feb 20, 2016 at 11:25 AM Richard Friedman <ri...@redline13.com>
>> > > wrote:
>> > >
>> > > > Why not use the OS Sampler?
>> > > >
>> > > >
>> > >
>> >
>> http://jmeter.apache.org/usermanual/component_reference.html#OS_Process_Sampler
>> > > >
>> > > > Here is a quick one I just created.
>> > > >
>> > > >
>> > > >
>> > > > On Sat, Feb 20, 2016 at 12:57 PM, Sheetal Jharia Baru <
>> > > sheetal93@gmail.com
>> > > > > wrote:
>> > > >
>> > > >> Hi,
>> > > >> I have installed Jmeter on my ubuntu machine which doesnt have UI
>> > > enabled.
>> > > >> I know I can run jmeter on CLI but I would need to create the .jmx
>> > file
>> > > >> for
>> > > >> running the shell script/command which I want to test.
>> > > >> Any sample .jmx fle which can run a command on shell will be
>> helpful.
>> > I
>> > > >> can
>> > > >> make appropriate changes to it as per my environment.
>> > > >>
>> > > >> Thanks for the help !
>> > > >>
>> > > >
>> > > >
>> > > > ---------------------------------------------------------------------
>> > > > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> > > > For additional commands, e-mail: user-help@jmeter.apache.org
>> > >
>> >
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org