Login | Register
My pages Projects Community openCollabNet

Discussions > users > [maxq-users] Problem while recording and then running it

maxq
Discussion topic

Hide all messages in topic

All messages in topic

[maxq-users] Problem while recording and then running it

Author zaman
Full name Zaman
Date 2010-08-13 10:03:30 PDT
Message Hi,

I am trying to use maxq to test a webserver that will be used for my
research. While I use the start recording and browse the site, I don't see
anything in the browser and in the recorded script it is shown as:

self.msg("Testing URL: %s" % self.replaceURL('''
http://server:8080/p​etstore/faces/catalo​g.jsp?catid=Dogs'''​<http://server:808​0/petstore/faces/cat​alog.jsp?catid=Dogs%​27%27%27>
))
        url = "http://server:8080/p​etstore/faces/catalo​g.jsp"
        Validator.validateRequest(self, self.getMethod(), "get", url,
params)
        self.get(url, params)
        self.msg("Response code: %s" % self.getResponseCode())
        #self.assertEquals("Assert number 2 failed", *null*,
self.getResponseCode())


I guess the main problem is the null response it gets and I don't know why
it happens. In the same test if I try amazon or google it works fine. But
the same thing happens if I try yahoo. Can you tell me does maxq behaves
based on how the web application is implemented?

And another interesting thing. For the same petstore application, I also
have a localhost implementation. And when I try the localhost using maxq,
sometimes the webpage is shown and the response code is recorded as 200 and
sometimes it is the same thing as above.


        self.msg("Testing URL: %s" % self.replaceURL('''
http://localhost:808​0/petstore/styles.cs​s'''<http://local​host:8080/petstore/s​tyles.css%27%27%27​>
))
        url = "http://localhost:808​0/petstore/styles.cs​s"
        params = None
        Validator.validateRequest(self, self.getMethod(), "get", url,
params)
        self.get(url, params)
        self.msg("Response code: %s" % self.getResponseCode())
        #self.assertEquals("Assert number 5 failed", null,
self.getResponseCode())
        Validator.validateRe​sponse(self, self.getMethod(), url, params)
        self.msg("Testing URL: %s" % self.replaceURL('''
http://localhost:808​0/petstore/faces/sta​tic/META-INF/rss/rss​bar.js'''<http://​localhost:8080/petst​ore/faces/static/MET​A-INF/rss/rssbar.js%​27%27%27>
))
        url = "
http://localhost:808​0/petstore/faces/sta​tic/META-INF/rss/rss​bar.js"
        params = None
        Validator.validateRequest(self, self.getMethod(), "get", url,
params)
        self.get(url, params)
        self.msg("Response code: %s" % self.getResponseCode())
        #self.assertEquals("Assert number 6 failed", null,
self.getResponseCode())


It would be great if someone can share his idea or knowledge on this.

Thanks
Zaman
Attachments
Messages per page: