Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating an object via Function Library
#3
Solved: 10 Years, 10 Months, 2 Weeks ago
Hi,

Please find the below code 4 refrence:

Code:
Set vo_ResDesc=createDescription("Link",DataTable("REScreateexport",dtGlobalSheet))


Function createDescription(vs_micClass,vs_Text)

   '_________________________________________________________________

'   Function: createDescription
'   Project: OCM
'   Library: Thales Functional Library
'   Description: This function will create the Description for the specified object
   '_________________________________________________________________

   'Variable Declaration:
   Dim vo_ResDesc
  

   '___________________________________________________________________

   'Code:
   Set vo_ResDesc=Description.Create()
   vo_ResDesc("micclass").value=vs_micClass
   vo_ResDesc("text").Value=vs_Text
   Set createDescription=vo_ResDesc
  

  
End Function

Let me know in case of any help required.

Regards,
Sankalp
Reply


Messages In This Thread
RE: Creating an object via Function Library - by sshukla12 - 06-19-2012, 03:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Calling a function in a Test Script from a function library anupam4j 3 5,948 06-26-2015, 12:31 AM
Last Post: babu123
  Using QTP features in Function library TurtleRock 0 1,666 01-30-2014, 06:02 PM
Last Post: TurtleRock
  QTP is not recognizing Function Library Path associated to the test AshokReddy 2 3,988 12-19-2013, 01:59 PM
Last Post: AshokReddy
  Accessing Environment variable value in Library file vishruth143 1 2,492 09-07-2013, 05:11 AM
Last Post: jacosta
  Creating Random String SomeIntern 0 4,816 08-21-2013, 09:10 PM
Last Post: SomeIntern

Forum Jump:


Users browsing this thread: 1 Guest(s)