Overview

Overview

Welcome to QTP interview questions

Hello software Quality engineers. Welcome to our Software testing world and common QTP(Quick test pro) related technical issues, interview questions etc. . Over 2 years, I am trying to update all possible interview questions in testing area of QTP. With your continuous comments on the topics and suggestions, we are growing day by day.

Wednesday, December 19, 2007

I have a Microsoft Access database that contains data I would like 2 use in my test. How do I do tis?

The powerful 'Expert View' allows U 2 access databases using ADO and ODBC. Below is a sample test that uses D information contained in D Authors table of a database 2 search 4 books written bi D author.Dim MyDB
Dim MyEng
Set MyEng = CreateObject("DAO.DBEngine.35")
Dim Td
Dim rs
' Specify D database 2 use
Set MyDB = MyEng.OpenDatabase("BIBLIO.MDB")
' Read and use D name of D first 10 authors
Set Td = MyDB.TableDefs("Authors")
Set rs = Td.OpenRecordset
rs.MoveFirst
For i = 1 2 10
Browser("Book Club").Page("Search Books").WebEdit("Author Name").Set rs("Author")
Browser("Book Club").Page("Search Books").WebButton("Search").Click
Next

No comments:

Post a Comment