QTP10.com is a new and completely free website that offers help in all the versions of HP QTP (including latest version 10). More importantly, it offers free code for users of HP QuickTest Professioal. This site helps you in learning the basics of QTP and descriptive/advanced programming in (QTP) on various environments like - .Net, Infragistics, Web, Windows, etc.

Note -
This blog is NOT affiliated with HP / Hewlett-Packard in any way. The data/questions come from various sources and we have our own testing questions. I am just another Software Tester like you.

Friday, July 17, 2009

QTP Interview Questions in IBM

SPONSORED LINKS

 

Following are the Interview questions asked at IBM for an Automation Test Engineer position. One of our reader attended it and shared the questions with us.

 

1. Can I use recovery scenario without using recovery scenario wizard?


2. What is the actual difference in Text/Text Area checkpoint. (Explain in detail with proper example)


3. Code for reading the data of a particular cell from an external excel file using COM.


4. Can I use datatable of Action1 in the Action2.


5. Can I import a excel sheet in Action1 datatable? How?


6. How to use regular expression in DP. (I don't have any Object Repository in my test)


7. What are pros and cons of DP?

 

Readers – Give a try and Post your answers in comments.

SPONSORED LINKS

6 comments:

phs167.DoRie said...

Can I use recovery scenario without using recovery scenario wizard?

Yes, Below is the syntax how we use them

1.'Turn off recovery scenario
Recovery.SetScenarioStatus 1,False

2.'Turn recovery scenario ON
Recovery.SetScenarioStatus 1,True

phs167.DoRie said...

Can I use recovery scenario without using recovery scenario wizard?

Yes, Below Please find the syntax in using

1.'Turn recovery scenario ON
Recovery.SetScenarioStatus 1,True

2. 'Turn off recovery scenario OFF
Recovery.SetScenarioStatus 1,False

suhail said...

Code for reading the data of a particular cell from an external excel file using COM.

set xlApp=CreateObject("Excel.Application")
xlWorkSheet=xlApp.WorkSheets.Add
xvar=xlWorkSheet.GetCellData(1,1)
Msgbox(xvar)

please let me know if i am wrong .

NBR_NAVEEN said...

If we keep on adding objects to Object Repository, it's size may bloated and inturn dwindle the execution speed of QTP, to overcome this loophole,we have the concept called DP, which states that without the involvement of Object Repository we can know the properties of Objects

Time is Precious said...

Difference between Text and Text Area checkpoint-QTP.
Text checkpoint both can check the whole string which u can do by using standard checkpoint. difference is that if u want to validate that a particular string has to come within a defined area then use text area checkpoint . use text checkpoint when the position of text is critical. assume u have a text box in one screen that displays the name entered in previous screen. u will use text area checkpoint to validate that name appears within the text box. u will use text checkpoint in this example to see that surname appears first(assuming some format specified wherein surname should be first).

joyita said...

Code for reading the data of a particular cell from an external excel file using COM.
Set oExcelApp = CreateObject("Excel.Application")
Set oWrkBk = oExcelApp.Workbooks.Add()
Set oWrkSht = oWrkBk.worksheets("Sheet1")
Value1 = Trim(oWrkSht.cells(iRow,iCol))