If I am going to need a VB sub routine or Function,
1) Can I create it anywhere within a test script - Very top or Bottom?
2) If I have a VB sub routine or Function in a test script "A", Can I call it
from Test Script "B"? Why and Why not?
Printable View
If I am going to need a VB sub routine or Function,
1) Can I create it anywhere within a test script - Very top or Bottom?
2) If I have a VB sub routine or Function in a test script "A", Can I call it
from Test Script "B"? Why and Why not?
Hi there,
1. Yes you can create a function anywhere in the script, and Make a call to it wherever it is necessay.
2. No! You cannot write a function in one test script and call it in another.
There's a easy way in which you can use a single function in two or more scripts.
Create a new function and save it, then associate the function with all the scripts in which you want to use it.
You can call the function simply by using Call Function_name()
Regards,
Tina Mahajan.