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.
6 comments:
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
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
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 .
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
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).
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))
Post a Comment