Posts

Showing posts from October, 2011

QTP Script Editor

QTP Script Editor.... I've been using QTP from version i guess 8.0 on ward but never explored this tool called QTP Script Editor. Today i just explored this tool to see what it does and why is it attached with QTP. Problum: In my company we have functions that are most of the time reusable, one example is date format conversion, extracting time or date from date function and the using command prompt to set systems date and time. My Work Around: What my normal practice was that i copy such kind of codes in a txt file and then copy paste code from that txt file to that script. This was my practice for years New Solution: From now onward i will be using QTP Script Editor, basically it opens multiple scripts and give you an option to copy paste code from different scripts to the desired script. Its easy to use tool and very. here are the key points related to QTP Script Editor when to use simultaneously view and modify as many test scripts and function libraries as you...

How to Delete Test Results using Command Prompt

Guys, The topic that today i choose to write is how to delete test results using command prompt. I know people will call me fool as if we have the tool that and visually we can delete the test results why should we learn how to delete test results using command prompt... :-) The argument is valid by its just for learning purpose and may be some day you will need a code to be part of QTP to delete the results of the executed script Consider the Senario. You created a script and at the end of script you write a script that delete all the logs and test results so that when you will ship your script to client or to any other machine it will not take much time. or you need to delete the scripts that were created after a specific date. so What you will do my friend. You have to search Google and here is the solution.. Open Dos Prompt and Go to TestResultsDeletionTool.exe directory and then write this command TestResultsDeletionTool.exe -Silent  -Test "X:\Test\testabc" Fr...

What i don't like in QTP

I was running a Script which was having DB checkpoints and my DB checkpoint was checking almost 50 to 60 field and some of the field have DB checkpoint failures. It was very easy to track down the DB checkpoint failure field as clicking an icon take me to that point where DB checkpoint value failed. I noted down field and now my next task is to update DB checkpoint. Jump into DB checkpoint like and when try to find out the fields that need to be changed it was hell of the job. The Checkpoint screen does not have any scroll bar and you have to click, click and click to move to that specific field to make a change and add insult to injury the space allocated to field is to small to accommodate 10 characters as a result i have to drag it to make it clear. once you are at end you have to click click again to come back to first line. You can not move between the Excel Cells. You have to click in next field and then move on.. HP.... Make my and fellow Testers life easy by making cha...

Result Viewer of QTP 11

No Doubt QTP has improved its Result viewer but few things that are still annoying are 1. If user select any other format other then HTML, the script converted in PDF, Doc is really, really slow specially when you have selected full detailed conversion. 2. If you select temp results and you wish to export the DataSheet the QTP throws error and user not able to export DataSheet. 3. Instead of just showing Green Tic for DB checkpoint that pass values should also be displayed.

JXImagePanel & Java Questions

Question: When we test java application that use JXImagePanel, although i am using Java Add-in but still my Controls did not recognized. Answer: JXImagePanel is one of the nightmare in QTP Testing. You need to add XML files created inside your Java Add-in file so that your JXImagePanel files get recognized. The JXImagePanel will then be added in your QTP as Sub add-in of Java and you can record & play back on Java application Question: I've a recorded script on Machine A and now running the Same Script on Machine B & my QTP is not recoganizing my Controls Ans: JXImagePanel recorded script is basically a x,y coordinates clicks so u need exactly the same Graphic Card on both machines in order to run the script ( i know it sucks but u have no other option) Question: I'm running a batch and some of my scripts use Java Add-in and some did not require Java Add-in. How to encounter that. Ans: You need to write a script that reloads QTP before the script that change add-in and ...