The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:




Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> HP Functional Testing / Mercury QuickTest Pro / QTP

JonRLewis
Member


Reged: 11/21/06
Posts: 52
Loc: Yorkshire
Re: 'My Beautiful Framework'
      04/16/12 03:01 AM

I have read a lot of descriptions of Keyword Driven frameworks, and in almost all cases the focus has been on the clever technical aspects of their code - whether its using Data Dictionaries or integrating classes with VB - but almost no thought seems to be given to the interface and the non-technical person who will be using it. As a consequence the end-user is usually expected to remember the name of every keyword and the order and acceptable values of every function parameter. It has been really refreshing to read about some great solutions that have put at least as much effort into the interface as into the application.

My first attempt at a Keyword Driven framework (a couple of years ago) ended up with a VB.Net interface and a SQL Server database. This made it possible to create an interface with pre-populated dropdown lists for the screens, objects, actions and functions, and help text for what everything did and what values could be used, etc. (something very similar to what Vishimon was describing).

I have now moved to a consultancy which led to me looking for a more mobile, transferrable solution and this in turn led me to take another look at spreadsheets. The solution I have arrived at is to split the data from the scripting tool. There is a single Data spreadsheet with worksheets for each application with the following columns: Screen, Object, Object Class, Object ID. Object ID is the DP code for the object and thus eliminates the need for an OR. There is also a worksheet for the functions - columns: Application, Screen, Name, Description, Parameter1, Parameter2, ..., ParameterN. The Parameter columns hold a description of each parameter with permitted vales, etc. There is another worksheet for SubTests with Application, Screen, Name. When you open the Scripting spreadsheet, the first thing it does is use ADODB to query the data spreadsheet pulling out all the application, function and subtest data which is used to make Named Lists to use in Data Validation. Doing it this way means the technical people can update the data and changes are available whenever you open a script. For the scripter, what they get is a series of dropdown lists populated according to the other selections made, i.e. Column A is for Applications - once an application is chosen Column B (Screens) is populated with all the screens defined for the selected application, and so on. Functions can be generic (i.e. not linked to any specific application) e.g. CaptureScreenshot, or linked to a particular application (e.g. Login) or screen. When a function is selected help fields are populated with descriptions of the function and parameters, taken from the data spreadsheet. I have a button on the Scripting spreadsheet that will build a QTP script, and I'm part of the way towards allowing that script to be saved to QC.

--------------------
Jonathan

Post Extras Print Post   Remind Me!     Notify Moderator


Entire topic
Subject Posted by Posted on
* 'My Beautiful Framework' Shreejit 04/05/12 11:04 PM
. * * Re: 'My Beautiful Framework' ManishBansal   04/06/12 02:59 AM
. * * Re: 'My Beautiful Framework' mwsrossoModerator   04/10/12 04:44 AM
. * * Re: 'My Beautiful Framework' ManishBansal   04/10/12 10:43 PM
. * * Re: 'My Beautiful Framework' mwsrossoModerator   04/10/12 11:57 PM
. * * Re: 'My Beautiful Framework' ManishBansal   04/11/12 02:48 AM
. * * Re: 'My Beautiful Framework' Shreejit   04/11/12 10:20 AM
. * * Re: 'My Beautiful Framework' mwsrossoModerator   04/10/12 04:49 AM
. * * Re: 'My Beautiful Framework' Shreejit   04/10/12 10:04 AM
. * * Re: 'My Beautiful Framework' RPNarayana   05/15/12 03:01 AM
. * * Re: 'My Beautiful Framework' mwsrossoModerator   04/10/12 11:03 AM
. * * Re: 'My Beautiful Framework' NoUse4aName   04/10/12 10:23 AM
. * * Re: 'My Beautiful Framework' Shreejit   04/11/12 10:24 AM
. * * Re: 'My Beautiful Framework' Shreejit   04/11/12 10:32 AM
. * * Re: 'My Beautiful Framework' GregEncke   04/11/12 10:42 AM
. * * Re: 'My Beautiful Framework' Shreejit   04/11/12 08:41 PM
. * * Re: 'My Beautiful Framework' GregEncke   04/12/12 08:11 AM
. * * Re: 'My Beautiful Framework' Shreejit   04/13/12 11:21 PM
. * * Re: 'My Beautiful Framework' mwsrossoModerator   04/11/12 11:25 PM
. * * Re: 'My Beautiful Framework' lockdown   04/12/12 06:05 AM
. * * Re: 'My Beautiful Framework' vishimon   04/15/12 04:56 AM
. * * Re: 'My Beautiful Framework' JonRLewis   04/16/12 03:01 AM
. * * Re: 'My Beautiful Framework' vampire123   05/15/12 02:06 PM
. * * Re: 'My Beautiful Framework' JonRLewis   05/16/12 01:17 AM
. * * Re: 'My Beautiful Framework' Mrinal_Nandi   05/16/12 03:42 AM
. * * Re: 'My Beautiful Framework' mwsrossoModerator   05/16/12 04:47 AM
. * * Re: 'My Beautiful Framework' Shreejit   05/17/12 09:09 AM
. * * Re: 'My Beautiful Framework' mwsrossoModerator   05/17/12 10:21 AM
. * * Re: 'My Beautiful Framework' MJP   05/17/12 01:57 PM
. * * Re: 'My Beautiful Framework' Shreejit   04/16/12 05:26 AM
. * * Re: 'My Beautiful Framework' lockdown   04/16/12 05:44 AM
. * * Re: 'My Beautiful Framework' mwsrossoModerator   04/16/12 10:32 AM
. * * Re: 'My Beautiful Framework' lockdown   04/17/12 12:50 AM
. * * Re: 'My Beautiful Framework' Shreejit   04/16/12 09:48 AM
. * * Re: 'My Beautiful Framework' kayd   04/11/12 06:39 PM
. * * Re: 'My Beautiful Framework' Rastek   04/09/12 06:04 AM
. * * Re: 'My Beautiful Framework' lockdown   04/10/12 02:12 AM

Extra information
0 registered and 83 anonymous users are browsing this forum.

Moderator:  IanFraser, Rajkumar_Rajangam, thorwath, TReddy, AJ, Tarun Lalwani, mwsrosso 



Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Thread views: 7293

Rate this thread

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5