Relevant Codes

A Test Development Resource for HP QuickTest Professional.

Updates: Upcoming Automation Framework

by Anshoo Arora on November 12, 2009

Update: RelevantCodes[1]One is now available for download.

As some of you may be aware that a few ideas regarding an Automation Framework were shared in this post. Even though I was expecting feedback from more people, I think what we have is a great starting point. Below are a few suggestions that I have think will be excellent to include in the first version:

  • 1 Excel Master Spreadsheet
  • Use of XML Files (may be available in the subsequent release)
  • Recovery Scenario (may be available in the subsequent release)
  • HTML Reporting
  • Generic structure
  • First release will run solely on a Web platform. Subsequent release will include a Windows application as well to be run simultaneously.

A few of my ideas that I wanted to share as well:

  • It may be a pure OO-structure.
  • VBA (Macros) in the Master Spreadsheet
  • Custom User Form
  • A simple test driver engine
  • Hierarchical Reporting
  • Check(s) for Product Versions
  • Simple structure for Loading and Unloading Global objects
  • Provision to capture screenshots (may be available in the next release)

Of course, what you see above is me thinking out loud, and some new ideas may be included while the ones above may be dropped for the first release. If you have any suggestions that you would like to share, please use the comments section to do so (you’ll really help me out a lot by doing so). Please remember, this is going to be for purely conceptual purposes and I will try to introduce as many of your ideas as possible. If I am not able to include them in the first release, I’m sure we will find room for them in the second (or the third if there is enough support).

The first release will be available sometime in January, and the framework will be code-named RelevantCodes[1]One. I will try to expedite it, but holidays are coming up which make thinking about work quite tough. :)

This post will be frequently updated as the framework creation starts and as I continue to receive your valuable feedback.

{ 17 comments… read them below or add one }

1 suni November 12, 2009 at 7:11 am

Hi Anshoo,

Good Initiative .I regret as i am unable to provide inputs bcos of work load.All the Automation process components suggested by u looks fine. we can add one more component like Automation Process Model diagram(flow diagram) and the description of each component.

*Edited* -Anshoo

This is just a suggestion we can modify according to the requirements.

Cheers
Sunitha

Reply

2 suni November 12, 2009 at 7:13 am

Hi

am very sorry i tried to replicate the diagram it has gone vain.. u can delete the post

Reply

3 Anshoo Arora November 13, 2009 at 2:53 pm

Not a problem, Suni. I have partially edited the post for now. :)

Reply

4 Diwan Bisht November 17, 2009 at 12:55 am

Hi,
Can you please explain about Keywork framework & Datadriven framework……
first>>Advantages and disadvantages of data driven and Keyword frame work.
Second>>Please explain about Keyword & DataDriven framework in Details………..

Please discuss about how to Implement the Framework in QTP Like
For Keyword driven test component:
1. function library
2.object repository
3.Database
4.APPLICATION SCENARIO
5. Initialization script
6. sequence files
7.driver script
8. Test case file

Where the above components created and what are their contents, can you provide me an example of above folder with detail contents.

Also please could you provide examples of script and test cases about gmail login window and how to make frame work for this.

Thanks a lot in advance………………….

Reply

5 Anshoo Arora November 17, 2009 at 9:53 am

Hi Diwan,

Please refer to this document at IBM, which describes (very well) about the types of Frameworks with examples. It also gives hints of which frameworks may well better in what type of situations. I don’t think my answer to your question will be even half as good as that article details each sort of framework.

Also, Relevant Codes One will contain almost all the points that you mentioned in your comment. Hopefully, you’ll like it :)

Thanks- Anshoo

Reply

6 Asiq Ahamed November 23, 2009 at 5:34 am

Hi Anshoo,
I have one question. Will the upcoming framework work with both DOM and native QTP classes to identify web objects?
I hope you have already planned this, but I just want to know that how the framework will handle with DOM and native QTP classes.

Reply

7 Anshoo Arora November 23, 2009 at 9:27 am

Hi Asiq,

I wasn’t planning on including DOM methods in this framework, but you are also the first one to bring this up :) I will try to include some DOM methods in the 2nd release, but I guess the first one will contain only the standard methods. The way this framework has been developed, I don’t think it will be too complicated to include a different sort of object scheme.

Because I wanted to keep everything quite simple, I know I have let go of a lot of things which this sort of design is capable of, but I think its more important for me that people understand the concept first. Including DOM is a good idea though, and I will try my best to include it in the next version. Thanks Asiq :)

Reply

8 abataBreext December 11, 2009 at 8:58 pm

Sry for being OFFTOPIC – what Word Press theme do you use? It’s looking great!

Reply

9 Anshoo Arora December 11, 2009 at 11:43 pm

Thesis @ Diythemes.com: http://diythemes.com/

Most of the PHP/CSS modifications are done by me, but Thesis makes it extremely easy.

Reply

10 Joe Loyzaga December 22, 2009 at 10:59 pm

Anshoo,

Love the site and its becoming my major resource area.
Have you got an ETA for this framework?

Reply

11 Anshoo Arora December 22, 2009 at 11:26 pm

Thanks Joe, and welcome to Relevant Codes! Its good to see you here :)

I have been extremely busy these days, mainly because of holidays :) but I will try my best to expedite it. The original release date I planned was around mid-Jan, but there is a lot of documentation left to do. Once that is done, I will be more than happy to let everyone download it and share their feedback.

Reply

12 Bharat February 11, 2010 at 1:00 pm

Hi Anshoo,

I have no words to appriciate u as there are lots of forums regarding automation tools but noone provide such a valueable matter.

I have downloaded ur kit but not able to download the youtube clips to get more clear picture about this framework to start with.

when i tried to download all the three clips using youtube downloader..got the following answer.

this url not available on youtube.

Can u pls guide me how to download these 3 clips?

Waiting for ur reply with very keen eyes.

Thanks
Bharat

Reply

13 Anshoo Arora February 11, 2010 at 2:26 pm

Reply to this comment has been posted here: http://relevantcodes.com/wp-admin/edit-comments.php?p=2068

Reply

14 Aman Kumar April 16, 2010 at 2:32 am

Dear Anshu,

I am not able to automate the form which has Captcha in it. Please help for it what to use like regular expression or like picking up the captcha from the session and put it into the related field.

Aman Kumar

Reply

15 Anshoo Arora April 16, 2010 at 5:54 am

Aman,

It is not possible to automate Captcha images..

Reply

16 Jeff Nyman July 13, 2010 at 5:47 am

Greetings.

I’m speaking as someone who is coming to QTP pretty much from a state of complete ignorance. As such, I found your framework to be incredibly helpful. I definitely hope you continue to develop this further.

Interestingly, much of the approach you take in the framework you provide — such as checking actions, checking data, and so forth — is functionality that I was incorporating into a separate format. (Currently VBA in an Excel sheet. My VBA logic then converts down into the language of QTP.) However, what I liked about your framework was that I could see how to do it in QTP and then have a way to translate out the material my own VBA logic was already doing. This gave me a good idea of how to make relatively “lean” frameworks in QTP.

Kudos to your work on this. Much appreciated that you have shared it with the community.

- Jeff

Reply

17 Anshoo Arora July 14, 2010 at 3:18 pm

Thanks for the kind and encouraging words, Jeff. I’m glad you found the framework helpful.

It was created as a demo project, but it has some techniques which are very close to one of my KD framework in a production environment at one of my clients’ site.

Reply

Leave a Comment

Previous post:

Next post: