Print Page | Close Window

silktest with vbs function return

Printed From: One Stop Testing
Category: Testing Tools @ OneStopTesting
Forum Name: SilkTest @ OneStopTesting
Forum Discription: SilkTest is an automation tool for testing the functionality of enterprise applications in most versions of Windows, Sun Solaris 9 & 10, and Red Hat Enterprise Linux WS 2.1 & 3.0.
URL: http://forum.onestoptesting.com/forum_posts.asp?TID=873
Printed Date: 24Nov2024 at 7:40am


Topic: silktest with vbs function return
Posted By: kajal
Subject: silktest with vbs function return
Date Posted: 24Apr2007 at 9:23pm
Hello,

I am trying to use a vb script with Silktest.

Here is my Silktest script:
BOOLEAN bTest = SYS_Execute ("start c:\helper.vbs")
Print(bTest)

Here is the vbscript:
BigFunction()

Function BigFunction()
BigFunction = CBool(1)
msgbox(BigFunction)
end Function

Here is the issue. I am returning TRUE, the vbscript tells me im returning true, but Silktest says im returning false.

Has anyone encountered this issue?




Replies:
Posted By: umesh
Date Posted: 25Apr2007 at 1:37am
How about:

script:

LIST OF STRING lsOutput
SYS_Execute("cscript c:\helper.vbs")
ListPrint(lsOutput)

vbscript:

Function BigFunction()
BigFunction = CBool(1)
end Function

WScript.StdOut.WriteLine BigFunction()




Print Page | Close Window