Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make function common for all action
#1
Not Solved
I have function written in one action.
Now i want to call from another action.

How to make common function repositery, so that i can call from any action?

At this moment I made pucblic function and i am able to call only inside that action.
so please let me know how i can call from other action?

how I can associate function from other action?

Call FunctioA
Call Functiob

Public Function FunctioA
'to do task A
End Function
Public Function FunctioB
'to do task B
End Function
Thanks in Advance
Reply
#2
Not Solved
Hi Ritesh,

Follow the below procedure:

step1. Open a Notepad & copy the function defination(ex: Function A code) into it and save as test.vbs file

step2. Load the above test.vbs file into Test > Settings > Resources > click "+" button > add test.vbs file > Apply > OK

step3. Call the above function in any of the actions.
Reply
#3
Not Solved
Thanks for response
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to make QTP Script to work when system gets locked? ramkumarad 6 11,895 11-02-2017, 03:37 PM
Last Post: Divv
  Calling a function in a Test Script from a function library anupam4j 3 5,906 06-26-2015, 12:31 AM
Last Post: babu123
  Local script to make compatible with QC automation2012 1 2,158 01-28-2015, 02:11 PM
Last Post: automation2012
  How to make QTP take the value of a formula in a spreadsheet? utestqa 1 2,958 07-06-2013, 04:13 PM
Last Post: Ankur
  Can a make Shared OR be made a Local OR sams001 0 1,802 10-30-2012, 03:07 PM
Last Post: sams001

Forum Jump:


Users browsing this thread: 1 Guest(s)