Re: How can we create .jmx file without using GUI ?
On 2 March 2016 at 19:05, Sheetal Jharia Baruwrote: > 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 > 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 >> 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 >> > 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 >> > > 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 < >> > > sheeta...@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-unsubscr...@jmeter.apache.org >> > > > For additional commands, e-mail: user-h...@jmeter.apache.org >> > > >> > >> - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
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 Millerwrote: > 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 > 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 > > 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 > > > 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 < > > > sheeta...@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-unsubscr...@jmeter.apache.org > > > > For additional commands, e-mail: user-h...@jmeter.apache.org > > > > > >
Re: How can we create .jmx file without using GUI ?
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 Baruwrote: > 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 > 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 > > 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 < > > sheeta...@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-unsubscr...@jmeter.apache.org > > > For additional commands, e-mail: user-h...@jmeter.apache.org > > >
Re: How can we create .jmx file without using GUI ?
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 Millerwrote: > 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 > 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 < > sheeta...@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-unsubscr...@jmeter.apache.org > > For additional commands, e-mail: user-h...@jmeter.apache.org >
Re: How can we create .jmx file without using GUI ?
Write using the tags and save with .jmx extension. < controller> < sampler> Regards Prakash On 20-Feb-2016 11:27 pm, "Sheetal Jharia Baru"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 ! >
Re: How can we create .jmx file without using GUI ?
I have created many jmeter scripts using the GUI then created bash scripts to run them headless. Occasionally using sed to modify them on the fly when I couldn't get what I wanted just through parameters. Writing a jmx file from scratch strikes me as the really hard way to go. John Sent from my iPhone > On Feb 20, 2016, at 5:14 PM, Mark Millerwrote: > > 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 > 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 >> 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-unsubscr...@jmeter.apache.org >> For additional commands, e-mail: user-h...@jmeter.apache.org - To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org
Re: How can we create .jmx file without using GUI ?
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 Baruwrote: > 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-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org