Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to attach external files to a QTP script?
#1
Solved: 10 Years, 8 Months, 4 Weeks ago
How to attach external .vbs files(with variables/functional etc.) to a QTP script?
Reply
#2
Solved: 10 Years, 8 Months, 4 Weeks ago
In the Settings > Resources
Reply
#3
Solved: 10 Years, 8 Months, 4 Weeks ago
Is there a function that can load the .vbs files to QTP?
Can I use the mentioned below
1. Load.File ""path""
2. ExecuteFile ""Path"
Reply
#4
Solved: 10 Years, 8 Months, 4 Weeks ago
Hi Prabhu,
Please open a new thread for your question.
you should reply under this post if you have any solution for the thread query.

Reply
#5
Solved: 10 Years, 8 Months, 4 Weeks ago
Prabhu - Please read through the forum guidelines and ensure that you do not reopen old posts. Please create a new Post for a NEW question.

Answer :

Yes using the AOM you can do the task.

Code:
Set objQTPApp  = CreateObject("QuickTest.Application")
Set objQTPLibraries = objQTPApp.Test.Settings.Resources.Libraries
If objQTPLibraries.Find("C:\QTP Automation\Library File 1.vbs") <> -1 Then
    objQTPLibraries.Remove "C:\QTPAutomation\Library File 1.vbs"
End If
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#6
Solved: 10 Years, 8 Months, 4 Weeks ago
1)add some resources to test.
2)Goto
File->Settings->Properties tab

3)click on generate script button

a *.vbs file will be generated in users machine.
go thru the file u vil have all the information u need to start QTP with a test u want to run.
Reply
#7
Solved: 10 Years, 8 Months, 4 Weeks ago
Hi Satan,
Request you to please do not mislead the thread, Post a reply if you have any solution to the original query.
also please read the Posting guidelines.

Reply
#8
Solved: 10 Years, 8 Months, 4 Weeks ago
Satan -
Have you tried the solution you suggested ?? Have you read the post clearly ??

In the future Please ensure you enter solutions very much particular and appropriate to the Discussion and not generic suggestions.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Cannot attach the text file to email arpan 2 3,272 07-19-2013, 12:13 AM
Last Post: arpan
  Download Files from AUT using QTP script qtptest 2 6,439 10-27-2012, 10:21 AM
Last Post: qtptest
Exclamation How to read the contents of external excel sheet qtplearner88 10 10,214 05-25-2012, 12:00 PM
Last Post: supputuri
  programming to use different external file of environment variables bundfromnj 1 3,696 01-19-2012, 05:32 PM
Last Post: SteveS
  Is there any way to store different configurations of our datasheets and attach them advqtpuser 1 2,386 03-19-2011, 04:06 AM
Last Post: tdevick

Forum Jump:


Users browsing this thread: 1 Guest(s)