Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Classes and Actions
#1
Solved: 10 Years, 9 Months, 1 Week ago
Helo everyone!

I'm try to pass class objects beetwen two actions using GlobalDictionary
but I have problem
When I try to pass simple values it's ok and even I try to pass object it's also everything fine but I can't call any methods from passed class object! So, question: WHY ?

Here is example:

Action1 source code:

Code:
GlobalDictionary.RemoveAll <---- before start cleanup global hash
RunAction "Action2"

'here i Try to call method "checkCall"
GlobalDictionary("checkObj").checkCall() <--------------ERROR, but WHY ?


Action2 source code:

Code:
Class check
   Function checkCall()
      MsgBox "OK"
   End Function
End Class

Set checkObj = new check
GlobalDictionary.Add "checkObj ", checkObj



Thanks a lot!
Reply


Messages In This Thread
Classes and Actions - by hmelhmel - 03-23-2012, 08:57 PM
RE: Classes and Actions - by vIns - 03-24-2012, 06:13 AM
RE: Classes and Actions - by rajeevszone - 03-25-2012, 06:24 AM
RE: Classes and Actions - by rajeevszone - 03-25-2012, 06:24 AM
RE: Classes and Actions - by hmelhmel - 03-26-2012, 09:51 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Does QTP 8.2 suppprts classes? Star 2 1,912 07-30-2009, 03:18 PM
Last Post: supputuri
  Using QTP Automation Object Model to declare object classes sadafakhan 0 2,778 07-24-2009, 05:20 AM
Last Post: sadafakhan

Forum Jump:


Users browsing this thread: 1 Guest(s)