Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use of Class Concept in QTP
#2
Not Solved
It is similar to the usage as in Java.
Define methods in a class and then call the methods using the objects created for that class.
Example
Code:
set classObj=new ExampleClass
classObj.fnExample
Class ExampleClass
Function  fnExample()
       msgbox "This is fn in class"
End Function
End Class
Reply


Messages In This Thread
Use of Class Concept in QTP - by sshukla12 - 12-22-2011, 11:53 AM
RE: Use of Class Concept in QTP - by ravi.gajul - 12-22-2011, 12:06 PM
RE: Use of Class Concept in QTP - by sshukla12 - 12-22-2011, 01:28 PM
RE: Use of Class Concept in QTP - by sshukla12 - 12-22-2011, 03:54 PM
RE: Use of Class Concept in QTP - by A.Saini - 12-22-2011, 10:30 PM
RE: Use of Class Concept in QTP - by ravi.gajul - 12-22-2011, 10:16 PM
RE: Use of Class Concept in QTP - by sshukla12 - 12-23-2011, 03:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  DP Encapsulation Within Class Object TheGlovner 2 1,796 10-12-2018, 02:11 PM
Last Post: TheGlovner
  Dynamic obj rep - get text in the class (html) marcio cravo moreira 0 2,130 05-26-2015, 06:58 PM
Last Post: marcio cravo moreira
  can class be a variable in DP wyrdo 1 2,475 08-07-2013, 01:33 PM
Last Post: anil2u
Sad QTP Script | how to get object of some open window just using its class type,Java sophia.sabir 1 8,872 08-07-2013, 01:26 PM
Last Post: anil2u
  Concept of Init Function of class Star 1 4,599 07-31-2009, 04:30 PM
Last Post: Saket

Forum Jump:


Users browsing this thread: 1 Guest(s)