Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP 10 QTP & VBScript
#1
Not Solved
Hi -

I see many examples of VBScript but not how they work with QTP. All I see is the script, no trace of QTP.

If these questions are answered, thanks in advance, I could have a better understaning of how VBScript is integrated into QTP.

1. Are VBScripts located in an external file?
2. Is this external VBScript file called from within QTP?

- Bill
Reply
#2
Not Solved
For example, let's say you have this QTP script:

Code:
Browser("IFS :: Intelligence Fusion").Page("IFS :: Intelligence Fusion").WebElement("Avalanche(Structured Search)").Click

And you have a VBScript.
Code:
Environment.Value("Execute")="Yes"
  
      Msgbox "This is Action1 code"
      RunAction "Action2",OneIteration
      RunAction "Action3", oneIteration

  Environment.Value("Execute")="No"

How do the 2 merge in QTP? What does the final script look like?

Can anyone answer this question?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to find and change text in PDF document using QTP UFT automation VBscript alexwhite 0 11,908 02-18-2017, 04:20 AM
Last Post: alexwhite
Question How to enhance QTP script with Vbscript mimi_suresh 0 2,047 09-27-2011, 10:28 PM
Last Post: mimi_suresh
  Please suggest me some books to learn vbscript basics for qtp GSuba 0 2,464 04-17-2011, 08:53 PM
Last Post: GSuba
  Please suggest some books to learn VBScript basics for qtp. Pls share if u have any. GSuba 0 3,942 04-08-2011, 12:55 AM
Last Post: GSuba
  QTP and VBscript - noobie question gplayer 0 2,373 03-11-2011, 06:50 PM
Last Post: gplayer

Forum Jump:


Users browsing this thread: 1 Guest(s)