Wednesday, April 28

QTP Actions VS Functions

 There has been debate over on whether to use QTP actions or Functions. Before presenting my opinion, let me present what they are and how they stand out.



QTP actions
- Are of three types Non reusable, reusable and external.
- Each action has local respositary associated with it
- Each action has local datasheet attached with it
- Each action call has to be inserted and cannot be dynamically called. There is concept of having relative path with QTP components, but it hardly works consistently with QC ( Where you require most as it is difficult move scripts around in QC)
* In QTP 10, there is new feature introduces which is called LoadandRunaction. There gives relief to folks who were using relative path for referring actions or have storage and development of scripts in different location

Monday, April 26

Simple VB Script that interacts with QTP and excel

'HI..here in this tutorial we gone try how to create a VB script which
' launches qtp and open the test which you have specified in the excel


'First we shall create a constant that points to the excel where it is located
' in local drive


Saturday, April 24

VBScript - 8 .Run the test

This is last blog related to creating Batch run VBS script. Here there are few simple steps you need add at the end so that QTP application, which has been opened, connected to QC and has test loaded , needs to execute the test.


In previous blog Set Test results options we created ObjresultOpt object. Assigned it which instance the result should be stored. Now comes its actual use where in you tell the QTP to run it with this options.



How to get started of VBscripting for QTP automation

For many who want to more of automation and just know how to use QTP a bit,  I thought i will just write few things you can start off which helped me to learn more of VBscript. 
I refereed book VBScript Programmer's Reference most of the time while learning. It helped to master things a bit


Friday, April 23

VBScript - 7 .Set Test results options


Set objResultsOpt=CreateObject("QuickTest.RunResultsOptions")    'Set Result options
objResultsOpt.ResultsLocation = ""
objResultsOpt.TDTestSet = QC_TEST_SET ' Test set name'
objResultsOpt.TDTestInstance = Instance ' Test instance in the test set. Generally it is one unless you have pulled the same test twice in same test set.
appQTP.visible=True
  


VBScript - 6 . Setting Global Options of QTP script

Here below parts of code, we will look at important setting you ought to do have better QTP execution.

Part 1
Set objTest=appQTP.Test.Settings.Run    'Set Run time settings
objTest.ObjectSyncTimeOut="60000"
objTest.IterationMode="oneIteration"
objTest.OnError="NextIteration"



Quality center QC not working in IE8 - windows XP/ Vista / Windows 7

Quality Center not working in IE8 - Win XP or How to Disable Data execution prevention (DEP)?

DEP is enabled by default in IE8 for win xp . This prevents code from running in memory that is marked non executable ( I guess QC or QTP does have some sort of this kind of code or IE is not analysing the code properly) . Hence the QC would not be able to run.

SO how to disable DEP this?

Advantages of Automation


                                                     
  •                                                         Time consuming                      Speed
  •                                                         Low Reliability                        Highly Reliable
  •                                                         Inconsisent                              Reusable
  •                                                        More Human resources            Programming capability
  •                                                                                                        More Coverage
  •                                                                                                        Repeatability

Thursday, April 22

VBScript - 5 Assign Test Parameters to QTP script

This blog is in sequence with my previous blogs and they are shown below.

VBScript - 1 . Launching QTP
VBScript - 2 . Connecting to QC/Open QC test
VBScript - 3. Add Resources of the Script

Here we shall look how to intialize the test parameters.

ISTQB Info

ISTQB- International Software Testing Qualifications Board

Why ISTQB required?

Although like  for all certifications, you may get very question that would arise is it worth taking and certifying yourself about the knowledge you already know,  but this would does make the other person ( your manager, interviewer, etc.) think are very much capable. Though in India , where there are not many professionals who would have had the certification, but it certainly puts you conspicuous in a lot. Would surely help the other person that you would make difference.

---------------------------------------------

Related Posts Plugin for WordPress, Blogger...