Hey u can use, ExecuteFile<Filename> stmt or RunAction stmt in you master file and call all the sub files.
Regards, Suresh On Monday, May 7, 2012 2:03:33 AM UTC+5:30, Sekha wrote: > > My q was different. It's not about a function , this is about calling > function file names (.vbs) like 10 of them into a master vbs file > > So in the resource tab I can only pull the master file instead of falling > all those 10 vbs files individually > > Sent from my iPhone > > On May 6, 2012, at 1:18 PM, sujit kumar <[email protected]> wrote: > > Hi kiran, > Write all function in .vbs file > example:FunctionLibrary.vbs > c:\Library\FunctionLibrary.vbs > > Now create new Test case > then Add your Library/Function Library > File->Setting->Resources->Click on + sign > Select your function "c:\Library\FunctionLibrary.vbs" > Click on Ok button > now function added in ur scrip.now u r free to use this function > check ur Function added or not > Resources->Associated Function Library > Call this library in you Script > Example: > bReturn=FunctionName() > bReturn=FunctionName2(arg1,arg2) > if no return then > Call FunctionName3(arg1,arg2,arg3) > > Feel free to ask if you have any query :) > > -- > Thanks & Regards > Sujit > > On Sat, May 5, 2012 at 4:10 PM, Ravi kiran <[email protected]>wrote: > >> you can use Call functionName(arguments) >> if there is a return value in the function >> returnname=functionName(arguments) >> like you can call multiple functions >> >> On Fri, May 4, 2012 at 9:04 PM, Kiran Ogeti <[email protected]> wrote: >> >>> could you help the syntax please >>> >>> --- On *Fri, 5/4/12, Syed Rowff <[email protected]>* wrote: >>> >>> >>> From: Syed Rowff <[email protected]> >>> Subject: Re: Call couple of .vbs files into another master vbs >>> To: [email protected] >>> Date: Friday, May 4, 2012, 10:52 AM >>> >>> >>> you can try to call all the vbs files from one vbs file >>> >>> -- >>> You received this message because you are subscribed to the Google >>> "QTP - HP Quick Test Professional - Automated Software Testing" >>> group. >>> To post to this group, send email to [email protected] >>> To unsubscribe from this group, send email to >>> [email protected] >>> For more options, visit this group at >>> http://groups.google.com/group/MercuryQTP?hl=en >>> >>> -- >>> You received this message because you are subscribed to the Google >>> "QTP - HP Quick Test Professional - Automated Software Testing" >>> group. >>> To post to this group, send email to [email protected] >>> To unsubscribe from this group, send email to >>> [email protected] >>> For more options, visit this group at >>> http://groups.google.com/group/MercuryQTP?hl=en >>> >> >> -- >> You received this message because you are subscribed to the Google >> "QTP - HP Quick Test Professional - Automated Software Testing" >> group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/MercuryQTP?hl=en >> > > > > > -- > You received this message because you are subscribed to the Google > "QTP - HP Quick Test Professional - Automated Software Testing" > group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/MercuryQTP?hl=en > > -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en
