Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Functions
#1
Solved: 11 Years, 4 Months, 3 Weeks ago
I am a beginner in QTP,
here what i know about the functions is
Functions are of two types
1).Built in Functons(built in functions are the functions which are designed by the vendor and we no need to worry bout the logic of the function)
2).Userdefined functions(which are designed by the user and reusing that functions for multiple times in any other test script)
(a).Public Function
(b).Private Function

and where as we use advanced user defined functions to perform the valdations..

but i dont know about the generic functions..
can any one help me by differntiating about functions and generic functions?

Thanks
Reply
#2
Solved: 11 Years, 4 Months, 3 Weeks ago
we can classify user defined functions in to 1. Generic Fcuntion 2. Business Function.

Generic functions are not specific to application business logics, it developed for common programming needs. like you can develope a user defined function to compare two text files and return result and like other common needs. it can be used for other projects also when using same testing tool.

Business functions are application business specific. Like Booking ticket, Loign like. Might not be used in other projects.
Reply
#3
Solved: 11 Years, 4 Months, 3 Weeks ago
Thank you inborntester
Generic Functions we use for validations
and Business functions for business operations, iam i correct? if not correct me

Thanks
Reply
#4
Solved: 11 Years, 4 Months, 3 Weeks ago
i dont get the scope at which you mean the validation. on the automation script we are comparing expected output with actual output at few lines of script either checkpoint or custom codes meant as validation on automation script scope. for validation we can use both generic and business functions at direct or indirect, or the vaildation may be part of functions. functions may be used for validation, but might not be only for that. its for the benefit for reusability on whatever need.

Reply
#5
Solved: 11 Years, 4 Months, 3 Weeks ago
@mrajeshtnl: Please make sure to use descriptive titles while opening new threads. Simply saying "Functions" doesn't make much sense.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Perform some functions whenever QTP Stop button is pressed smartkarthi 2 3,261 08-22-2013, 11:43 AM
Last Post: smartkarthi
  exit parent functions as well Shridevi.Salagare 3 3,917 07-31-2013, 12:15 AM
Last Post: Ankur
  Datatable in functions shwetasharma 2 3,559 03-26-2013, 08:00 AM
Last Post: sams001
  Problem with using two functions in the same action mhanaan 2 3,060 09-14-2012, 10:09 PM
Last Post: mhanaan
  Can you do functions by calling filename or any other better ways? chong67 2 3,265 05-29-2012, 11:41 PM
Last Post: chong67

Forum Jump:


Users browsing this thread: 1 Guest(s)