jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mak Pandian <makpand...@gmail.com>
Subject Re: Issue Recording the Script
Date Fri, 04 Oct 2013 04:54:31 GMT
Hi Umesh,


I think, you should take a look at Regular Expression Extractor


On Fri, Oct 4, 2013 at 1:53 AM, umesh prajapati <praumesh86@gmail.com>wrote:

> ok I think I found the issue what is happening but I do have a question if
> there is anyway we could do this.
>
>
> Basically While I recorded the login flow using jmeter proxy server, I
> added view result tree. Looking at view result tree of recording script ,
> the user is able to see the dashboard or home page.
> But when I replay the script , the home page is not being displayed because
> it is using the same ticket  of recording.
>
> In our application while user logs in, a uniqute ticket is given each time
> which validates the user and displays the homepage . So, if the same ticket
> is being used , it will not display the home page .
>
> My question is, is there anyway I can change the ticketnumber everytime a
> login request is send.
>
>
> On Thu, Oct 3, 2013 at 12:32 PM, umesh prajapati <praumesh86@gmail.com
> >wrote:
>
> > Hi seb
> >
> > I was looking at my log file while recording the script and it is giving
> > following error. So any suggestion on how to solve this issue
> > 2013/10/03 12:30:26 INFO  - jmeter.protocol.http.proxy.Proxy: Opened
> > Keystore file: C:\apache-jmeter-2.9\bin\proxyserver.jks
> > 2013/10/03 12:30:26 INFO  - jmeter.protocol.http.proxy.Proxy: KeyStore
> for
> > SSL loaded OK and put host in map (www.google-analytics.com)
> > 2013/10/03 12:30:26 ERROR - jmeter.protocol.http.proxy.Proxy: Problem
> with
> > SSL certificate? Ensure browser is set to accept the JMeter proxy cert:
> > Received fatal alert: bad_certificate
> javax.net.ssl.SSLHandshakeException:
> > Received fatal alert: bad_certificate
> >  at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
> > at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:136)
> >  at
> >
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1694)
> > at
> >
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:939)
> >  at
> >
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:746)
> > at
> com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
> >  at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
> > at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
> >  at
> >
> org.apache.jmeter.protocol.http.proxy.HttpRequestHdr.parse(HttpRequestHdr.java:110)
> > at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:197)
> >
> > 2013/10/03 12:30:50 ERROR - jmeter.protocol.http.proxy.Proxy: Problem
> with
> > SSL certificate? Ensure browser is set to accept the JMeter proxy cert:
> > Received fatal alert: bad_certificate
> javax.net.ssl.SSLHandshakeException:
> > Received fatal alert: bad_certificate
> >  at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
> > at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:136)
> >  at
> >
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1694)
> > at
> >
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:939)
> >  at
> >
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:746)
> > at
> com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
> >  at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
> > at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
> >  at
> >
> org.apache.jmeter.protocol.http.proxy.HttpRequestHdr.parse(HttpRequestHdr.java:110)
> > at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:197)
> >
> > 2013/10/03 12:30:57 INFO  - jmeter.protocol.http.proxy.Daemon: Proxy
> > Server stopped
> >
> >
> >
> >
> > On Thu, Oct 3, 2013 at 11:21 AM, umesh prajapati <praumesh86@gmail.com
> >wrote:
> >
> >> I do have cookie manager.
> >>
> >> I recorded the following script in badboy and jmeter
> >> Step1. request login page
> >> Step2. Enter username and password
> >> Step3. Click on my account
> >> Step4. Click on homepage
> >> Step5. Sign out
> >>
> >> I replayed the script using badboy and all I see is the login page and
> >> then right after than Sign Out
> >>
> >> I replayed the script after recording in jmeter and In view result tree.
> >> I see login page request for all the steps beside the Sign Out request.
> >>
> >> I than recorded same script using badboy for our old version code
> >> And I replayed the script and I was successfully able to see all the
> >> steps being perfomed.
> >>
> >> So, I am wondering why it is not being able to record with our latest
> >> code.
> >>
> >>
> >>
> >> On Thu, Oct 3, 2013 at 10:07 AM, sebb <sebbaz@gmail.com> wrote:
> >>
> >>> On 3 October 2013 17:32, umesh prajapati <praumesh86@gmail.com> wrote:
> >>> > I have had no problem in the past recording through badboyand
> >>> exporting it
> >>> > to jmeter or recording the script through jmeter itself.
> >>> >
> >>> > But today while I am trying to do follow either process the response
> i
> >>> am
> >>> > getting for each sampler is always same.
> >>> >
> >>> > For example:
> >>> > I recorded the script for login.
> >>> > 1 step : open the login page
> >>> > 2 step: user inputs username and password
> >>> > 3 step: it displays the dashboard page
> >>> > 4 step: i tried clicking couple links after login was successful
> >>> >
> >>> >
> >>> > After record was completed I started the script or test again with
> view
> >>> > result tree.
> >>> > Sampler 1 Request: login page  Response in view result tree: login
> page
> >>> > Sampler 2 Request: Display the dashboard page Response in view result
> >>> tree
> >>> > : login page
> >>> > Sampler 3: Request: Click on some link Response in view result tree:
> >>> login
> >>> > page
> >>> >
> >>> >
> >>> >
> >>> > I dont know what is wrong or why it is giving the same login page
> >>> response
> >>> > for each and every request which is not login request.
> >>>
> >>> Most likely a missing Cookie Manager
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> >>> For additional commands, e-mail: user-help@jmeter.apache.org
> >>>
> >>>
> >>
> >
>



-- 
*Thanks & Regards*
* *
*Pandian*
*(Living @ Virtual World)*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message