Login | Register
My pages Projects Community openCollabNet

Discussions > dev > MaxQ and recording web activity that involves Java applets that do HTTP networking stuff

maxq
Discussion topic

Back to topic list

MaxQ and recording web activity that involves Java applets that do HTTP networking stuff

Author David Luu <cuuld at yahoo dot com>
Full name David Luu <cuuld at yahoo dot com>
Date 2006-08-25 12:30:21 PDT
Message Hi,

Sorry if I'm posting to the wrong list, I'm writing
about a particular test scenario that doesn't seem to
work (well) in MaxQ or proxies. Perhaps you could look
into such a test scenario. I also have a feature
suggestion.

1. Test scenario

Plan is to automate configuring a system through its
browser interface. The browser interface makes use of
Java applets that communicate with the web server via
HTTP. The web pages load the applets and the applets
retrieve info via HTTP GET and send configuration data
back via HTTP POST. I'm not sure how the Java applets
were implemented as I'm not the developer but they use
a Java library to communicate with the server.

I developed my own solution (part of the feature
suggestion) before I encountered MaxQ. I decided to
try out MaxQ and it worked up until a Java applet
loaded and tried to retrieve data from the web server
- it could not connect to server properly (data
fetched ok but changes not submitted). I guess it
might be a proxy issue where the applets can't seem to
use the browser's proxy setting. Is there a way to
work around this for MaxQ and other proxies? I assume
this could also apply to sites that use Flash content
that also make their own HTTP connections.

2. Feature suggestion

I solved my problem by parsing an HTTP trace obtained
from a browser-plugin HTTP header analyzer. The Java
applet's HTTP requests were logged by the plugin tool,
so I was able to do my automation. In theory, this is
the same as using a proxy like MaxQ does or a network
analyzer like Wireshark/Ethereal.

My Perl-based solution parses the HTTP trace and
converts it into the equivalent Perl-based browser
requests - quite similar to how MaxQ converts the
proxy data to Python code.

Perhaps you might consider adding a plugin/extension
option for MaxQ to generate the Python code from an
HTTP trace file similar to my solution since there are
cases where a proxy doesn't work well like my test
scenario above.

I'd like to help with such a plugin and more, perhaps
in the future. I have yet to learn Python and I know
some Java.

btw, reference to my perl solution is at:

CodeProject article "Web/HTTP Automation with Perl"
http://www.codeproje​ct.com/useritems/web​automaton.asp

Regards,

David Luu
QA Engineer
Vertical Communications, Inc.

« Previous message in topic | 1 of 3 | Next message in topic »

Messages

Show all messages in topic

MaxQ and recording web activity that involves Java applets that do HTTP networking stuff David Luu <cuuld at yahoo dot com> David Luu <cuuld at yahoo dot com> 2006-08-25 12:30:21 PDT
     Re: [maxq-dev] MaxQ and recording web activity that involves Java applets that do HTTP networking stuff oliverbock Oliver Bock 2006-08-25 17:54:53 PDT
         Re: [maxq-dev] MaxQ and recording web activity that involves Java applets that do HTTP networking stuff David Luu <cuuld at yahoo dot com> David Luu <cuuld at yahoo dot com> 2006-08-28 11:52:20 PDT
Messages per page: