how to write scripts in QTP?

Answer Posted / kalyana chakravarthy

HI This is Chakravarthy.

If u know "C" language it is very easy to write VB Script.

and u have to know how can we use Scripting in QTP.

for ex. we wil use if conditions,nested if,for loops,while
loop,variable diclarations,functions,......etc in QTP.

all this topics come under "C" Language.

If u have any Queries contact me at

mskalyan.smile@gmail.com

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the mandatory properties for a tex boxc (scenario?)

1523


Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop.My scenarios is like that,it should contain following steps. 1)Automatically it should click on start and then on remote desktop connection. 2)it should enter the IP address and then connect to remote desktop. 3)and then it should be able to record the application in remote machine and then run it also. Can somebody tell me how to record the application which is in remote machine.

1484


Explain Descriptive Programming Types with Examples?

921


Hybrid framework supports Descriptive programming. Is it true?

647


How can we retrieve the Bug Ids which are open&Reopen in status through QTP scrit?Please find the script which i tried... Dim objBugFactory, objBug Dim BugId Set TDConnection = QCUtil.TDConnection Set objBug = TDConnection.BugFactory If QCUtil.IsConnected then Reporter.ReportEvent 0, "Connected", "Connected to server: " + QCUtil.TDConnection.ServerName + chr (13) +"Project: " + QCUtil.TDConnection.ProjectName + chr (13) + "Domain: " + QCUtil.TDConnection.DomainName Reporter.ReportEvent 0, "Current time on server is","==>" & TDConnection.ServerTime Else Reporter.ReportEvent 1, "Not connected", "Not connected to Quality Center" End If If mybug.Status="Open" Then BugId=mybug.DefectId MsgBox BugId End If 'OR**********************************--------------------- -----********************************** If Bug_Fields("BG_STATUS").Value ="Open" Or "Re Open"Then BugId=Bug_Fields("BG_BUG_ID").Value MsgBox BugId End If

2565






what is impact analysis on regression testing?

2041


Output values? i want a practical example

1309


How to open a new test using quicktest professional?

567


Can any body please tell me the steps of keyword driven framework of QTP.

1565


In what occasion we can specify global sheet and action sheet?

566


What is an object repository?

602


What is the descriptive programming?

1511


Explain different type of event trigger option.

535


What is the XML file architecture ?

1545


Where can I find and view run-time data table?

522