Active TopicsActive Topics  Display List of Forum MembersMemberlist  CalendarCalendar  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin


 One Stop Testing ForumTesting Tools @ OneStopTestingSilkTest @ OneStopTesting

Message Icon Topic: silktest with vbs function return

Post Reply Post New Topic
Author Message
kajal
Newbie
Newbie
Avatar

Joined: 24Apr2007
Online Status: Offline
Posts: 21
Quote kajal Replybullet Topic: silktest with vbs function return
    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?




Post Resume: Click here to Upload your Resume & Apply for Jobs

IP IP Logged
umesh
Newbie
Newbie
Avatar

Joined: 25Apr2007
Online Status: Offline
Posts: 1
Quote umesh Replybullet 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()

IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.703 seconds.
Vyom is an ISO 9001:2000 Certified Organization

© Vyom Technosoft Pvt. Ltd. All Rights Reserved.

Privacy Policy | Terms and Conditions
Job Interview Questions | Placement Papers | Free SMS | Freshers Jobs | MBA Forum | Learn SAP | Web Hosting