Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP:Issue related to use a global function
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi,

I am facing some issues while automating my web application.

1. I have a function for random string creation .And want to use it in lots of scripts around 10.So i want to make it Global so that i'll just call the function and it'll be usable there.For this please suggest me how to do this..

2. I have made a 'log in' action in one script .And same login action is required in all scripts so i made it reusable in that script.Now i called the reusable action to other scripts too.But parent property mismatch error is getting populated for that action in other scripts.Donn know whySad?

Please help me to sort it out....

Thanks
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Use either Environment variable why because u were using reusable actions
or
Create a gobal variable in a function and call this function at required places

U could add this function either in function library or dynamically load using "Load"

Venkat.Batchu
Reply
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
Yeah..Its workin..ThanksSmile
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Reading Global Sheet's DataTable Value Bhuvana 0 1,634 01-05-2020, 10:03 PM
Last Post: Bhuvana
  Error as Global Not defined while trying to retrieve value from Datatable siddharth1609 0 958 09-11-2019, 02:52 PM
Last Post: siddharth1609
  QTP system related issue Bharathi Kanagarajan 1 2,090 09-12-2015, 11:28 PM
Last Post: ADITI1992
  Calling a function in a Test Script from a function library anupam4j 3 6,114 06-26-2015, 12:31 AM
Last Post: babu123
  On Saving Script in QTP 11 my Global Data Sheet data is removed M Adnan Iftikhar 0 2,173 06-02-2015, 09:19 PM
Last Post: M Adnan Iftikhar

Forum Jump:


Users browsing this thread: 2 Guest(s)