GeekInterview.com
Series: Subject: Topic:
Question: 28 of 308

When actions are available why we use functions?

Hi, Can anybody give the answer to this question which is recently asked in interview, When we have actions available in qtp, why we use functions?
Asked by: Interview Candidate | Asked on: Sep 11th, 2011
Showing Answers 1 - 3 of 3 Answers
Sarada Akurathi

Answered On : Sep 13th, 2011

As per my knowledge, if you use functions then that is Keyword-driven methodology and it is useful for non-technical people and actions will be used in data driven methodology.

  
Login to rate this answer.

Sorry, please see correct answer

In Keyword driven framework, we will use functions. We will write a test case using keywords and each keyword will become a function and then we will make the test script.

In DataDriven Framework, we will define reusable actions and in the script we will use the actions.

  
Login to rate this answer.
SUMA

Answered On : Nov 18th, 2012

As per my knowledge Action is specific to that particular test (with in test).

Where as Functions you can use any where not only for that particular test (Global)

Correct me if I am wrong. Thank You!

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.