Hello,

I am working on automating unix application using QTP via
terminal emulator.Recording and playback works as i execute
my test case. I need to parameterise my data now.
Steps to be followed
1. go to the application
TeWindow("TeWindow").Window("Connect").WinButton
("Connect").Click
2. Make a transaction to an account
I am able to make transaction one at a time (one person
when i run the script) and the script is as below and works
fine.
TeWindow("TeWindow").TeTextScreen
("TeTextScreen").Type "./4ee.sh"
TeWindow("TeWindow").TeTextScreen("TeTextScreen").Type
micReturn
TeWindow("TeWindow").TeTextScreen("TeTextScreen").Sync
TeWindow("TeWindow").TeTextScreen
("TeTextScreen").Type "a21100002"
TeWindow("TeWindow").TeTextScreen("TeTextScreen").Type
micReturn
TeWindow("TeWindow").TeTextScreen("TeTextScreen").Sync
TeWindow("TeWindow").TeTextScreen
("TeTextScreen").Type "tcccc"
TeWindow("TeWindow").TeTextScreen("TeTextScreen").Type
micReturn
TeWindow("TeWindow").TeTextScreen("TeTextScreen").Sync
TeWindow("TeWindow").TeTextScreen
("TeTextScreen").Type "test"
TeWindow("TeWindow").TeTextScreen("TeTextScreen").Type
micReturn
TeWindow("TeWindow").TeTextScreen("TeTextScreen").Sync
TeWindow("TeWindow").TeTextScreen("TeTextScreen").Type
micF1
TeWindow("TeWindow").TeTextScreen("TeTextScreen").Type "6"
TeWindow("TeWindow").TeTextScreen("TeTextScreen").Type
micF1
TeWindow("TeWindow").TeTextScreen
("TeTextScreen").Type "xexit"
TeWindow("TeWindow").TeTextScreen("TeTextScreen").Type
micReturn
TeWindow("TeWindow").TeTextScreen("TeTextScreen").Sync

3. Now i need to Make a transaction to the account for the
list of people available from data table. How do i do this?
Please let me know if you can

Thanks,
Chaya



Hello, I am working on automating unix application using QTP via terminal emulator.Recording an..

Answer / lmacasiljig

You can parameterize your data in many ways see samples
below:

1. Via DataTable

TeWindow("TeWindow").TeTextScreen
("TeTextScreen").Type DataTable("Column1", dtlocalSheet)
TeWindow("TeWindow").TeTextScreen("TeTextScreen").Type
micReturn
TeWindow("TeWindow").TeTextScreen("TeTextScreen").Sync
TeWindow("TeWindow").TeTextScreen
("TeTextScreen").Type DataTable("Column2", dtlocalSheet)
TeWindow("TeWindow").TeTextScreen("TeTextScreen").Type
micReturn



Where "Column(n)" are defined in QTP DataTable. These
columns will hold your data.

2. Scripted Component Parameters (Using BPT) or Action
Parameters

TeWindow("TeWindow").TeTextScreen
("TeTextScreen").Type Parameter("Column1")
TeWindow("TeWindow").TeTextScreen("TeTextScreen").Type
micReturn
TeWindow("TeWindow").TeTextScreen("TeTextScreen").Sync
TeWindow("TeWindow").TeTextScreen
("TeTextScreen").Type Parameter("Column2")
TeWindow("TeWindow").TeTextScreen("TeTextScreen").Type
micReturn

Hope these help.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

suppose u have two send buttons(same width,height,font) on an application write a descriptive programming

1 Answers  


Hi Every body please explain me in steps to use checkpoints and object Repositories in QTP for Flight Reservation application please tell me the steps for this its urgent pls thanx for urs answers

0 Answers  


How to make arguments optional in a function?

1 Answers   Crea,


In QTP , Test Director combination . what is the role of Test Director? How QTP Launching QTP in T.D ? If it is Winrunner possible. but QTP How it is possible?

1 Answers   IBM, TCS,


How can I map test requirement to Test Set (multiple test cases)? Under test lab, I have multiple test cases. I would like to map 1 requirement to all test cases under that test set (in test lab)? Currently, I think QC only allow mapping 1 test requirement to 1 test case. Instead I would like to map 1 test requirement to multiple test cases under one test lab.

4 Answers   CarrizalSoft Technologies, DST Global Solutions,






Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?

0 Answers  


Write a script to print below pattern 5 4 3 2 1 5 4 3 2 5 4 3 5 4 5

2 Answers  


1.how can we report the QTP test result in a different excel sheet 2.

3 Answers   Aurigo,


In smart identification, explain about 1. Base filter properties 2. optional filter properties with examples?

2 Answers   TCS,


HOW TO FIND WEBTABLE? HOW TO RETRIVE THE WEBTABLE VALUES? PLZ TELL ME THE PROCEDURE.

2 Answers   TCS,


how do you invoke the application through QTP?

1 Answers  


write string reverse prog using vb script with out using string reverse statement();

4 Answers  


Categories