Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP doesn't undestand "Option Explicit"
#1
Solved: 10 Years, 9 Months, 1 Week ago
Hi all,

Pls help me. I write a sript in VBS, and QTP can't understand it. Each time I run the script, QTP show a run time error: "The test can't be run due to an unrecoverable error: File not found Line (1) Option Explicit".
Reply
#2
Solved: 10 Years, 9 Months, 1 Week ago
Please put your properly formatted code here.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Solved: 10 Years, 9 Months, 1 Week ago
Here is the code:
Code:
Option Explicit

' Load StartUp class
ExecuteFile "C:\Frame hai\Utilities\StartUp.vbs"

Dim strTestSuite, keywordTest

' Path to the Test suite
strTestSuite = "C:\Frame hai\Test Suite.xls"

' Create instance of StartUp class
Set keywordTest = New StartUp

' Execute tests in the specified workbook
keywordTest.funRunTest(strTestSuite)

' Release resource
Set keywordTest = Nothing
Reply
#4
Solved: 10 Years, 9 Months, 1 Week ago
...by any chance have you given option explicit statement in startup.vbs also and have not defined the variable there...or check if the file path is correct....

this statement can also be reason for error...
Code:
Set keywordTest = New StartUp
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  File Chooser on Chrome doesn't work - UFT 15.0.1 Nenna Rosa 1 3,312 10-31-2020, 01:16 PM
Last Post: Ankur
  How to select the drop down option by searching for partial text Neetha 4 8,269 08-04-2015, 08:55 PM
Last Post: Neetha
  Click on drop down and select second option using HP UFT Tusharguru99 2 6,447 07-30-2015, 06:06 PM
Last Post: Neetha
  Object doesn't support this property or method: 'webedit' Divya Roopa 3 9,689 03-11-2014, 07:26 AM
Last Post: basanth27
  What is the criteria of identify the object based on Base & option filter properties Suma Parimal 2 2,900 01-28-2014, 06:35 PM
Last Post: Suma Parimal

Forum Jump:


Users browsing this thread: 2 Guest(s)