| |
viettreo
Posts: 2
Score: 0
Joined: 6/26/2008
Status: offline
|
Resource.vbs '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Option explicit Public REPORT_FILE,REPORT_SHEET Public APP_URL,ADMIN_NAME,ADMIN_PASSWORD Public iWebSync iWebSync = 360000 REPORT_FILE = "D:\Automation\TestSuite\TestSuite.xls" REPORT_SHEET = "eLearningSmoke" APP_URL = "http://vn-wit-autotest:7001/wfo" ADMIN_NAME = "thaithao" ADMIN_PASSWORD = "pumpkin1" '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Driver.vbs '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' strFilePath = "Resource.vbs" LoadTestData strFilePath Public Sub LoadTestData(strFilePath) Dim fso, myFile, strTemp Set fso = CreateObject("Scripting.FileSystemObject") If Not fso.FileExists(strFilePath) Then Exit Sub End If Set myFile = fso.OpenTextFile(strFilePath, 1) Do While Not myFile.AtEndOfStream strTemp = myFile.ReadLine Execute strTemp Loop End Sub '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' From Drvier.vbs, I'd like to get value of the variables I declare in Resource.vbs. Is there any way to do this please. I have tried this but it seems that Execute command does not work. Thanks for any recommendation.
|
|