QTP Interview Questions
Questions Answers Views Company eMail

how to read log file using QTP??

AppLabs,

3 13395

will QTP accepts javascript?

AppLabs,

14 29689

Hi All I'm new in QTP. I'm trying to make test cases for login on Flight.exe . I have parametrise the agentname and password field. So wen wromg agent name or password is entered it show a dialog box with proper message(Like: "Wrong Password" or :Please enter Password" etc) and OK button. I have created If else block. Now my problem is i want to make checkpoint on error message Dialog box. But each time i create a checkpoint it shows same text message. So how i can check that message is there or not.

2 4331




Hi All Below is my script which i made for lgin into Flight.exe. SystemUtil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe","","C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\","open" Dialog("Login").WinEdit("Agent Name:").Set DataTable ("p_Text", dtGlobalSheet) Dialog("Login").WinEdit("Agent Name:").Type micTab Dialog("Login").WinEdit("Password:").SetSecure DataTable ("p_Text1", dtGlobalSheet) Dialog("Login").WinButton("OK").Click If Dialog("Login").Dialog("Flight Reservations").WinButton ("OK").exist Then Dialog("Login").Dialog("Flight Reservations").WinButton ("OK").Click datatable.Value(3)= "Incorrect password. Please try again" Dialog("Login").WinButton("CANCEL").Click elseif Dialog("Login").Dialog("Flight Reservations").WinButton("OK").exist Then Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click datatable.Value(3)="Please enter agent name" Dialog ("Login").WinButton("CANCEL").Click elseif Dialog("Login").Dialog("Flight Reservations").WinButton("OK").exist then Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click datatable.Value(3)= "Please enter password" Dialog("Login").WinButton ("CANCEL").Click else Window("Flight Reservation").Move 309,146 datatable.ExportSheet "C:\Raj\Result.xls" ,1 Window("Flight Reservation").Close End If I want to capture the Message string from Dialog("Login").Dialog("Flight Reservations" Also pls let me know if this is the right way to do the script for login. Pls provide some script for login Flight.exe Thanks in advance Raj Dhiman

1 5241

When u ll use Record Button in QTP?Is VB script is Mandatory in QTP? What is Meaning of Frame("v1")?

TCS,

1 2565

Whenever we use GETROPROPERTY function.

NIIT,

7 21465

how can we handle exceptional handling in qtp

NIIT,

5 6091

how do you do database testing in qtp

NIIT,

5 16294




Wt is the difference between Business Component and scripted component?

BSL,

1 7297

how to re-install QTP 9.0 trial version.

25 59962

Browser("Las Vegas Hotels - Las").Page("Vegas Hotels - Hotels").Link("Luxor") ......here Luxor is a hotel and this is recognised as a link. I have many hotels like Luxor, Palms etc which are all displayed as link...How do I parametrize this by using webtable functions??? ASAP

HP,

1 2539

HI, Anybody can explain Automation Test Framework...and wht do we do before start of Automation.....

Siemens, Polaris,

5 9671

Wht is Smart Identification Mechanisam in QTP..Actually when do we this Technology means during Recording or running ....how is technology works. Anybody can expalin this .....Thanks in advacne

Siemens,

4 10404

hi radhaka plz tell me clearly to handle the earrors with out isng recovery scnerio this is sreenivas from delhi

2 3155

write a qtp script to see time in windows command prompt? its urgent....

BSL,

9 13962


Post New QTP Questions






Un-Answered Questions { QTP }

Hi ,Can any one pleas explain how to test splash objects using QTP?

1206


Hi, How Accessibility checkpoint in QTP can be implemented in the test script?

886


What is the use of sendkeys and what are send keys

1239


how can we compare descriptive programing with a regular expression

1237


regular expression in qtp standar check point for months from accepting months from january to december only

862






Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link

117


.have you ever written compiled module? if yes , tell me about some of the function that you wrote.

1061


PLEASE TELL ME WHEN DO YOU USE THE OBJECT SPY AT RUN TIME

4038


I used the below code to open QTP through VBscript?But i can unable to Invoke QTP...PLZ help me with the correct code to invoke QTP through VBS with description of the code aswell. Dim qtApp 'As QuickTest.Application 'Declare the Application object variable Dim qtTest 'As QuickTest.Test 'Declare a Test object variable Dim qtResultsOpt 'Declare a Run Results Options object variable Set qtApp = CreateObject("QuickTest.Application") 'Create the Application object qtApp.Launch 'Start QuickTest qtApp.Visible = False 'Make the QuickTest application visible qtApp.Open "C:\form", True 'Open the test in read-only mode 'set run settings for the test Set qtTest = qtApp.Test qtTest.Run 'Run the test 'WScript.StdOut.Write "Status is: " & qtTest.LastRunResults.Status 'Check the results of the test run qtTest.Close 'Close the test qtApp.quit 'Close QuickTest Pro Set qtResultsOpt = Nothing 'Release the Run Results Options object Set qtTest = Nothing 'Release the Test object Set qtApp = Nothing 'Release the Application object

1602


what is the advantages and disadvantages of using functions instead of re usable actions

812


when I was doing the web testing with QTP using with standard checkpoint the Object selection -checkpoint properties dialog box not displaying pages and links hierarchical order. Could you please tell me. thanks

1065


Diff b/w test scenario's and test Procedures?

795


Shall we add Local Repository to shared object repository,if yes,how we add

3209


what QTP Options do you know?

2220


How to connect the remote desktop using QTP 9.2 explain the method or procedure?

2144