Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Automate the Testing using perl with the given third party softwares.

by jesuashok (Curate)
on Jul 05, 2006 at 10:21 UTC ( #559286=perlquestion: print w/ replies, xml ) Need Help??
jesuashok has asked for the wisdom of the Perl Monks concerning the following question:

dear monks,

I am testing an application which is developed using J2ee and the following third party software are being used in this application :-
1) Web Server: Borland Webserver
2) Database : Informix
3) Openfusion.
4) The application is developed using J2EE.

Last time, I was asked to do the performance Test. That test includes the following steps :-
1) login to application
2) launch a screen specified in the test case.
3) from the log file I have to note the time taken to launch the screen.
4) logout.

The above test steps, I have to repeat for 10 times. Since it is a manual testing, it is boring and time consuming. I have come to an Idea to develop an automate script for this.

monks Please give me your thouhts on how to make this automate. Please consider the softwares which are used in the application before giving your valuabe thoughts.

I have to login to system and launch the screen and logout from the system using perl. what are all the interfaces I have to use in perl ? I know about Informix module, by using that I can connect with Informix. I am mainly concentrating on the rest of part.

"Keep pouring your ideas"

Comment on Automate the Testing using perl with the given third party softwares.
Re: Automate the Testing using perl with the given third party softwares.
by Corion (Pope) on Jul 05, 2006 at 10:35 UTC

    As your application user interface seems to be a web frontend, have you looked at WWW::Mechanize ?

      Hi

      I tried to use the WWW::Mechanize module but If I install WWW::Mechanize module it is affecting the Informix Db. If I try to access db using 'dbaccess' command, system is getting hang without any error. If I uninstall the WWW::Mechanize module, the problem is getting resolved. I don't have any clue on this. Can you suggest me some other alternative. Thanks.

      "Keep pouring your ideas"
        Hi jesuashok,

        It seems to be some problem in the part of code where you are connecting the database by using 'dbaccess' command.Because with my knowledge installation of mechanize module wont affect the connection of database.
        As other monks told,WWW::Mechanize is the good module for interacting with webbased products.So give the piece of command which is making you to hang,sothat we will guide you where you done mistake.

        Best of Luck!!!

        Thanks and Regards,
        madtoperl.

        Of course there may be something strange about your setup that you are not telling us, but there is no way that installing a Perl module should have any effect on the operation of the Informix tools. I have IDS 9.40.UC2E1 installed here as well as WWW::Mechanise and dbaccess works perfectly fine. If you really are experiencing this problem as you describe then I think you need to raise a support ticket with Informix. Do the other Informix tools such as dbschema or onmonitor experience any problems?

        /J\

Re: Automate the Testing using perl with the given third party softwares.
by marto (Chancellor) on Jul 05, 2006 at 10:50 UTC
    jesuashok,

    You have not told us if this application you have to test is some sort of web based Java applet or JSP pages (or whatever)? You need to tell us what you are trying to drive in order for us to give you advice. See How do I post a question effectively? for advice on posting questions.

    Martin
Re: Automate the Testing using perl with the given third party softwares.
by Moron (Curate) on Jul 05, 2006 at 11:20 UTC
    Managing GUI test sessions from Perl can be done with Expect. If you need any Perl-independent parts of Expect you can also go to http://expect.nist.gov/

    -M

    Free your mind

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://559286]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2014-09-23 07:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (211 votes), past polls