How can we redirect QTP results in to a excel sheet after
the execution

Answer Posted / rayudu

You have to create a function for that for example



Pass the below values

strTCNo=23 (Test Case No)
strResult=Pass (Result
public function FnTcStatus (strTCNo,strResult)


DtRwCnt= DataTable.GetSheet("Result").GetRowCount

For l=1 to DtRwCnt
DataTable.SetCurrentRow(l)
If DataTable("A","Result")=strTCNo Then
datatable.Value("TC_Status","Result")=uCase(strResult)&"_"&
Now()

End If
Next

strTcNo=""
strResult=""


end function

Is This Answer Correct ?    1 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Through array we can execute the testcase how ? give me example

1391


What is QTP’s model for test creation?

668


How to use userdifined environment variables.Once we created in Environment tab which is at File--> Settings-- >Environment-->Userdifined

1457


What is quick test pro?

582


what is Property......End Property loop? how to write sript for it in QTP

1882






What is the short cut keys for the following?

634


How you can write contexts to text file in qtp?

586


can u explain the keyword driven framework with an example clearly how to create all the files and how to attach to main test.

5084


What are the different types of qtp test assets and their extensions?

587


What are the different ways to invoke an application using QTP?

639


Explain Descriptive Programming Types with Examples?

919


Please provide specific examples of advanced/creative usage of QTP, including how impact & benefits for your project

1630


What are the different types of recording modes in qtp? Which will be used when?

555


What is action split and the purpose of using this in qtp?

528


Explain qtp(quick test professional)?

570