You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by "akshata s.m." <ak...@yahoo.com> on 2008/10/10 14:47:56 UTC
Assertions to test Login page
Hello,
I have a set of samplers to Login to the Web application. I would like
to add assertions to these samplers to check logins for the following
combinations:
Login
Password
Result
User1
password
User logs in
User1
wrongpwd Displays
error message
nonexistinguser password Displays error message
wronguser
wrongpwd Displays
error message
blank
blank
Displays error message
In case of 'Displays error message' the messages are in the init function of Javascript.
Kindly let me know how the assertions should be added.
Also i have attached the jmx file for reference.
I would be thankful if i get a solution to this so that i can keep this as a reference to my further assertions.
Regards,
Akshata
RE: Jmeter Help
Posted by Ernie Nelson <ju...@hotmail.com>.
You could probably also try using snmp to monitor the boxes remotely if the service is installed. There are alot of packages out there (commercial and non) that can do the hardware and service monitoring of distributed applications via snmp.
> Date: Mon, 13 Oct 2008 12:24:57 +0200> From: peter@peterse-uithuizen.com> Subject: RE: Jmeter Help> To: jmeter-user@jakarta.apache.org> > Well I should think on the command: top> it shows> * CPU info> * Used memory> * Used swapspace> > Peter.> > > Hi All,> >> > I am running my test on a Unix box, so if you know of something which I> > can use to measure system parametrs there will of good help.> >> > Ajay> >> > -----Original Message-----> > From: Ravindra Gupta [mailto:rav.gupta@gmail.com]> > Sent: Friday, October 10, 2008 8:57 PM> > To: JMeter Users List> > Subject: Re: Jmeter Help> >> > Use windows utility "perfmon" to measure system resources. You can add> > various counters like CPU utilization, memory, etc> >> >> > On Fri, Oct 10, 2008 at 7:16 PM, Mishra, Ajay <Aj...@gs.com>> > wrote:> >> >> Hi All,> >>> >> I wanted to know if there is a way to capture the System parameters> > like> >> CPU. Memory etc in Jmeter. I have setup the Monitor results listener> > and> >> it is working fine when run from the GUI mode. When the test is run> > from> >> the command line i.e. in non-gui mode the .jtl file doesn't capture> > the> >> system parameters detail. Is there any specific settings needs to be> >> done for the same. Also I have observed that for all the HTTP request> >> when I run it as a non-gui test the Request and Response values are> > not> >> displayed.> >>> >> Ajay> >>> >> ---------------------------------------------------------------------> >> 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> >> >> > > > ---------------------------------------------------------------------> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org>
RE: Jmeter Help
Posted by Peter Peterse <pe...@peterse-uithuizen.com>.
Well I should think on the command: top
it shows
* CPU info
* Used memory
* Used swapspace
Peter.
> Hi All,
>
> I am running my test on a Unix box, so if you know of something which I
> can use to measure system parametrs there will of good help.
>
> Ajay
>
> -----Original Message-----
> From: Ravindra Gupta [mailto:rav.gupta@gmail.com]
> Sent: Friday, October 10, 2008 8:57 PM
> To: JMeter Users List
> Subject: Re: Jmeter Help
>
> Use windows utility "perfmon" to measure system resources. You can add
> various counters like CPU utilization, memory, etc
>
>
> On Fri, Oct 10, 2008 at 7:16 PM, Mishra, Ajay <Aj...@gs.com>
> wrote:
>
>> Hi All,
>>
>> I wanted to know if there is a way to capture the System parameters
> like
>> CPU. Memory etc in Jmeter. I have setup the Monitor results listener
> and
>> it is working fine when run from the GUI mode. When the test is run
> from
>> the command line i.e. in non-gui mode the .jtl file doesn't capture
> the
>> system parameters detail. Is there any specific settings needs to be
>> done for the same. Also I have observed that for all the HTTP request
>> when I run it as a non-gui test the Request and Response values are
> not
>> displayed.
>>
>> Ajay
>>
>> ---------------------------------------------------------------------
>> 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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
RE: Jmeter Help
Posted by "Mishra, Ajay" <Aj...@gs.com>.
Hi All,
I am running my test on a Unix box, so if you know of something which I
can use to measure system parametrs there will of good help.
Ajay
-----Original Message-----
From: Ravindra Gupta [mailto:rav.gupta@gmail.com]
Sent: Friday, October 10, 2008 8:57 PM
To: JMeter Users List
Subject: Re: Jmeter Help
Use windows utility "perfmon" to measure system resources. You can add
various counters like CPU utilization, memory, etc
On Fri, Oct 10, 2008 at 7:16 PM, Mishra, Ajay <Aj...@gs.com>
wrote:
> Hi All,
>
> I wanted to know if there is a way to capture the System parameters
like
> CPU. Memory etc in Jmeter. I have setup the Monitor results listener
and
> it is working fine when run from the GUI mode. When the test is run
from
> the command line i.e. in non-gui mode the .jtl file doesn't capture
the
> system parameters detail. Is there any specific settings needs to be
> done for the same. Also I have observed that for all the HTTP request
> when I run it as a non-gui test the Request and Response values are
not
> displayed.
>
> Ajay
>
> ---------------------------------------------------------------------
> 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
Re: Jmeter Help
Posted by Ravindra Gupta <ra...@gmail.com>.
Use windows utility "perfmon" to measure system resources. You can add
various counters like CPU utilization, memory, etc
On Fri, Oct 10, 2008 at 7:16 PM, Mishra, Ajay <Aj...@gs.com> wrote:
> Hi All,
>
> I wanted to know if there is a way to capture the System parameters like
> CPU. Memory etc in Jmeter. I have setup the Monitor results listener and
> it is working fine when run from the GUI mode. When the test is run from
> the command line i.e. in non-gui mode the .jtl file doesn't capture the
> system parameters detail. Is there any specific settings needs to be
> done for the same. Also I have observed that for all the HTTP request
> when I run it as a non-gui test the Request and Response values are not
> displayed.
>
> Ajay
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
Re: Jmeter Help
Posted by sujitkrnayak2006 <su...@gmail.com>.
Hey can yopu please help me out distributed JMeter testing, it looks like you
have allready implemented.
Here is my problem:->
I am trying to to do stress testing through JMeter Distributed testing, i
have implemented all steps set-up for remote distibution on console pc as
well as remote pc with all configuration but when i am trying to start
remote pc thru JMeter on console(GUI JMeter) machine (Run->Remote
Start->remote pc IP Address) and run my test plan it does not work.
Before run above test plan, i have start JMeter Server on remote machine and
after run the test plan its displaying message as below on JMeter server
console on remote machine.
Found ApacheJMeter_core.jar
Starting the test on host 10.82.12.81 @ Thu Oct 09 16:20:18 EDT 2008
(1223583618
687)
Finished the test on host 10.82.12.81 @ Thu Oct 09 16:22:13 EDT 2008
(1223583733
153)
One more thing i have not found Jmeter.engine.RemoteJMeterEngineImpl:
Starting backing engine on JMeter GUI logs file.
I think JMeter GUI machine and remote machine has not connected properly but
not sure.
(Note-After i start remote machine from JMeter GUI, stop Remote machine
option is disable)
I dont understand where i did the mistake, can anyone suggest me how to go
ahead.
Mishra, Ajay wrote:
>
> Hi All,
>
> I wanted to know if there is a way to capture the System parameters like
> CPU. Memory etc in Jmeter. I have setup the Monitor results listener and
> it is working fine when run from the GUI mode. When the test is run from
> the command line i.e. in non-gui mode the .jtl file doesn't capture the
> system parameters detail. Is there any specific settings needs to be
> done for the same. Also I have observed that for all the HTTP request
> when I run it as a non-gui test the Request and Response values are not
> displayed.
>
> Ajay
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Assertions-to-test-Login-page-tp19917699p19922413.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Jmeter Help
Posted by "Mishra, Ajay" <Aj...@gs.com>.
Hi All,
I wanted to know if there is a way to capture the System parameters like
CPU. Memory etc in Jmeter. I have setup the Monitor results listener and
it is working fine when run from the GUI mode. When the test is run from
the command line i.e. in non-gui mode the .jtl file doesn't capture the
system parameters detail. Is there any specific settings needs to be
done for the same. Also I have observed that for all the HTTP request
when I run it as a non-gui test the Request and Response values are not
displayed.
Ajay
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Assertions to test Login page
Posted by sebb <se...@gmail.com>.
On 10/10/2008, akshata s.m. <ak...@yahoo.com> wrote:
>
> Hello,
>
> I have a set of samplers to Login to the Web application. I would like to add assertions to these samplers to check logins for the following combinations:
>
> Login Password Result
>
> User1 password User logs in
> User1 wrongpwd Displays error message
> nonexistinguser password Displays error message
> wronguser wrongpwd Displays error message
> blank blank Displays error message
>
> In case of 'Displays error message' the messages are in the init function of Javascript.
> Kindly let me know how the assertions should be added.
The normal approach is to add an assertion that checks if the sample
has been successful.
In this case, look for something that only appears if the login is
successful. This obviously depends on the application you are testing.
> Also i have attached the jmx file for reference.
Please don't send files to the list.
> I would be thankful if i get a solution to this so that i can keep this as a reference to my further assertions.
>
> Regards,
> Akshata
>
>
> ---------------------------------------------------------------------
> 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