Posts

Showing posts from 2014

QTP Fundamental - Part One

QTP Fundamental - Part One  - Example 1: Validate if a webtable exist boolExist = Browser(…).page(…).webtable(…).exist - Example 2 : To Find number of rows and columns in a web table intRowCnt=Browser("Google").Page("title:=.*").WebTable(“name:= TTable").RowCount For r=1 to intRowCnt ‘’ This will loop through each row and tell count of column in each row. intColCnt=Browser("Google").Page("title:=.*").WebTable(“name:=TTable").ColumnCount(r) MsgBox intColCnt Next - Example 3: How to get data in a particular cell in the data table strData= Browser("Google").Page("title:=.*").WebTable(“name:=TTable").GetCellData(r,c) Where r = row number and c = column number - Example 4: Using childObject method to find objects of a particular type within a webtable Public Function func_findObjectinaWebTable(strObjType) Set objDesc=Description.Create objDesc("micclass").value=strobjType set objChild=Browser("Goog...

Interview Question - Part Four

Interview Question - Part Four asked in Tech M / JP Morgan & Clear2Pay - How many types of Object repositories are there in QTP (Ans: Share & Local) - Tell me about yourself. - What are the Repository features (Ans: Object locator, Add, Merging, Comparing) - How to create a recovery scenario? What does recovery scenario manager do? - How to calculate number of Web links in a web Application using descriptive programming? - Open a word file and modified with some value using QTP? - How to create a excel file using QTP? - How to retrieve a value from web table? (Ans: Get Celldata(row, col)) - What is QC requirement tab do? And how to map the requirements? - What is defect Life Cycle? - What is difference between smoke testing and sanity testing? - What are the main content in the Test plan? - How to create environmental variable? - How to create Action? - How many types of action are there in the QTP? (Ans: Non-reusable, Reusable, Ext...

Interview Question Part Three

Interview Question Part Three      1- How to click on the button in front of the name in webtable?    2- How to access the excel as a database using adodb.connection? How to specify columns?    3- How to come out of the function when error occurs.    4- Explain use of on error resume next, raise error, err object in QTP?    5- Can we create classes in VB script or QTP?    6- How to create constructor in class in vbscript? What are the default methods in class?    7- Explain Loadfunctionlibrary in QTP.    8- on error resume next will jump after next line or block?    9- How to do automation estimations like efforts required to design framework, automate app?   10- How to trigger the web element events like click, mouseover, mousedown in QTP?   11- How to calculate return on investment (ROI) for automation projects?   12- What are the diffe...