How to database testing by manualy?in my db having 100
records when i am retriving the data from db it shows in
frent end 30 records how to find bug using QTP?plz Exp
realtimers (Chandana)

Answers were Sorted based on User's Feedback



How to database testing by manualy?in my db having 100 records when i am retriving the data from..

Answer / saravanaraja

You can Copy & Paste to QTP:

Dim con,rs,ex,a,b,i

Set con=createobject("adodb.connection")
Set rs=createobject("adodb.recordset")
con.open"provider=sqloledb.1;server= ;uid= ;pwd= ;database=
"

rs.open"select count(column name) from table",con

Set ex=createobject("Excel.Application")
Set a=ex.workbooks.open("path of the Excel")
Set b=a.worksheets("sheet1")

i=1

Do while not rs.eof



b.cells(i,1).value=rs.fields("column name")

rs.movenext
i=i+1

loop

Is This Answer Correct ?    2 Yes 0 No

How to database testing by manualy?in my db having 100 records when i am retriving the data from..

Answer / sesha reddy

plz any one can send answer ,only reading the answers is
not godd friends .plz try to write the answers

from
sesha reddy

Is This Answer Correct ?    3 Yes 2 No

How to database testing by manualy?in my db having 100 records when i am retriving the data from..

Answer / t.sunil kumar

Goto Insert>>checkpoint>>database checkpoint>>wizard will
open >> select the select sql statement manually>> click on
Next>> sepecify the connection string>> enter the query you
want. so that all the data available in the database will
appear in the table format. so that compare the data with
the user interface so that you can find the error in the
database.

plz let me know if there is any wrong in my answer.

Is This Answer Correct ?    1 Yes 0 No

How to database testing by manualy?in my db having 100 records when i am retriving the data from..

Answer / ashok

Using QTP ,and make appropriates db connection and Query to
get a data in Record Set from data base and compare that
data with front end dable to find bugs.

Is This Answer Correct ?    0 Yes 0 No

How to database testing by manualy?in my db having 100 records when i am retriving the data from..

Answer / chandana

Dear Ashok u told the processor ? can u explain me in detail
with steps Plz (chandana)

Is This Answer Correct ?    0 Yes 0 No

How to database testing by manualy?in my db having 100 records when i am retriving the data from..

Answer / ashish srivastava

Hi All,

As per your question i would like to suggest that make sure
that your are passing the same query from the from end as
you are using it in the back-end
as per the question your database having 100 records ,so
make sure that the query ur passing should not have any
"WHERE" AND JOINS statements in the query . If you have then
the Result will be filter and you will get the record
matching to the criteria in the query

FOR USING IT IN QTP PLS write the below code

Dim connect, recset

connect=CreateObject("ADODB.Connection")

recset=CreateObject("ADODB.RecordSet")

connect.Open"Provider=SQLDB1,Userid="Your ID",
Password="Your Password",Database="Your Database"

recset.open "Select Count(*) from your table name",connect

msgbox recset

Is This Answer Correct ?    0 Yes 0 No

How to database testing by manualy?in my db having 100 records when i am retriving the data from..

Answer / lotr

Good reply Sunil. I guess they must have replied if that
solution worked or not !!

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

Apart from VB script What are the fundamental criteria to gain the knowledge to write QTP script without OR and recording ?

2 Answers  


What are the challenges you faced during you entire life automation ?

0 Answers   Tech Mahindra,


How can i use virtual objects? If have i created one new virtual object in a virtual object manager by following instructions.

0 Answers  


what is defenetion of kiran can u tell me plz CVS, SVN

0 Answers  


What is keyword driven framework?

0 Answers  


Can anyone please explain me the process of automating an application using QTP as i am new to this?

1 Answers   Fidelity,


How u execute test cases in manual testing?

2 Answers   Accenture, Infosys,


For which type of project the iterative model is suitable?

0 Answers  


Q) Please any body can help me how we can create descriptive programming if the application is not ready i.e we don't have unique property of object ? note:build not ready means we can't use object spy in build to get unique property .

2 Answers  


Give me the Example of standard check point and text check point with syntax?

3 Answers   IMI Soft, IMI Soft Engineering,


How to connect to the Database from QTP?

10 Answers   DB, Thatavarti Technologies, Xchanging,


How do you done Data-Driven Testing using MS-Word. What is the script for that

3 Answers   IBM,


Categories