GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  QTP
Go To First  |  Previous Question  |  Next Question 
 QTP  |  Question 492 of 674    Print  
How to call functions in test case when they are decleared within library under a class defination?

  
Total Answers and Comments: 1 Last Update: September 09, 2007     Asked by: jadhav pandharinath 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 09, 2007 13:38:45   #1  
swanand        

RE: How to call functions in test case when they are d...
Create Class object in testcase...and Call function as
ClassObjectName.functionname(ArgList)

if within class your function is defined as Private this will not work....please change declaration to public for function .

Thanks
Swanand

 
Is this answer useful? Yes | No

 Related Questions

Hi I am new to load testing .Currently i am using Load runner 8.2. i have recorded a script for login screen with some UID/PWD.In load runner Controller i have selected 100 Vusers,and i the run script.My question is :1.)Is the same script runs 100 times for same UID/PWD what i have entered during Recording.2.)If my data base contains only 50 users.Selecting 100 Vusers is a valid case?.3.)If i have selected 100 Vusers,is it necessary to enter 100 UID/PWD.Regards,vivek
Read Answers (8) | Asked by : vivek

In Quick Test Pro 8.21. While Recording/writing the Script i want to know the " Selecting Tab Position Action Script".Eg: Window contains 4 tab positions i would like to select 2 tab position at that time how script will come. plz write the script and send me. 2. How can i generate and select Tree View in Programatically. Eg: Mycomputer Contains all drives information like as below. +My Computerwhen i press + Symbol My Computer will Expand that format like-- My Computer Drive

Hello,I'm using QTP 8.2. and I want to test an Application which is designed with Oracle Forms 10 g.Before installing the Oracle Addin for QTP 8.2. I was able to open the Application with QTP and IExplorer 6.0.After Installing the Oracle Addin for QTP 8.2. I wasn't able to open the Application neither with QTP nor ÍExplorer.I only installed the Addin. I haven't installed any upgrade or patch!The following failure is shown in the JAVA Console after starting the application:java.lang.VerifyError:
Read Answers (5) | Asked by : SPortz

How to use automation object to load the library files in QTP. I tried to use this stmt" set App = createobject("Quicktest.Application")App.Test.Settings.Resources.Libraries.Add ("F:QTPrepository.vbs"),1 ".could u pls help how to add it by script itself? what is executefile concept? is it workaround to my question?

1. Defination of Object repository2. Explain Output co-relation3. Explain Exceptional handling4. Explain Synchronization5. Explain Parameterisation6. Explain Smart identification7. Principles of the QTP8. 
Latest Answer : paramerisation:changing constant value with parameter(variables) is called paramerisation.u can do parameterization by 4 ways:1)action parameter2)envirnmental variables3)data type4)random numbers.smart identification:when QTP unables to identify the ppt ...
Read Answers (11) | Asked by : M.TAGARE

Latest Answer : The below code...will connect to databaseSet xlconn=createobject("ADODB.connection")Set xlrset=createobject("ADODB.recordset")connstring="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:Documents and SettingsmavDesktopseshudb1.mdb;User ...
Read Answers (2) | Asked by : ilts

More details on Question: I was trying to call the QTP Scripts from Load Runner Controller Scenario. There, I only see options for Vuser Scripts, GUI Scripts, Astra Tests and All Files(*.*) options in 
Latest Answer : there is a spcial patch from mercury should be purchased for which the qtp 8.2 scripts will be compatible with load runner ...
Read Answers (4) | Asked by : Raj

Latest Answer : Select the particular action and click on the position form where you want to run the script. Then Right Click and select "Run From Step". ...
Read Answers (3) | Asked by : umakarri

Hi Fellowmates...i am pretty new entrant into this. I am on QTP and into the beginning of it. I really need lot of support and help from your end. When do we go with Object Repository and also the error handling. When i was running the script i got 2 messages for 2 runs saying that :-Cannot find the 'keyword' objects parent "mainContent"(class frame) Verify that parent properties match an object currently displayed in your application.Cannot identify the object "main_content_3'
Read Answers (4) | Asked by : CHAKRATENG

I am testing a Java executable application and and IE based application.I have a script that I would like to launch the Java executable, enter a record in the database, the switch over to IE and search the database. Currently I am having trouble: 1) The java EXE cannot be launched from the QTP command line. So my run settings are run on any open Java application. This is not preferable and right now DEV cannot figure out why QTP can launch other Java apps and not ours. So when I start the script


 Sponsored Links

 
Related Articles

Microsoft AJAX Library - Introducing JSON

Introducing JSON In AJAX applications client server communication is usually packed in XML documents or in the JSON JavaScript Object Notation format Interestingly enough JSON s popularity increased together with the AJAX phenomenon although the AJAX acronym includes XML mosgoogle JSON is the format
 

Microsoft AJAX Library - Inheritance using Prototypes

Inheritance using Prototypes Once again prototyping can help us implement an OOP feature in a more elegant way than when using closures Prototype based inheritance makes use of the behavior of JavaScript prototypes When accessing a member of a function that member will be looked for in the function
 

Microsoft AJAX Library - Inheritance using Closures

Inheritance using Closures and Prototypes There are two significant techniques for implementing the OOP concept of inheritance with JavaScript code The first technique uses closures and the other technique makes use of a feature of the language named prototyping Early implementations of the Microsof
 

Microsoft AJAX Library - JavaScript Execution Context

JavaScript Execution Context In this section we ll take a peek under the hood of the JavaScript closures and the mechanisms that allow us to create classes objects and object members in JavaScript For most cases understanding these mechanisms isn t absolutely necessary for writing JavaScript code&am
 

Microsoft AJAX Library - Creating Object Members on the Fly

Creating Object Members on the Fly One major difference between OOP in C and ASP NET and OOP in JavaScript is that JavaScript allows creating object members on the fly" This is true for objects and classes that you create yourself and also for JavaScript s own objects and types as well He
 

Microsoft AJAX Library - Associative Arrays

Thinking of Objects as Associative Arrays A key element in understanding JavaScript objects is understanding the notion of associative arrays which are nothing more than collections of key value pairs As a NET developer you have worked with associative arrays represented by classes such as NameValue
 

Microsoft AJAX Library - C# and JavaScript Classes

C and JavaScript Classes For the purpose of demonstrating a few more OOP related concepts we ll use another class Our new class is named Table and it has two public fields rows columns and one method getCellCount The getCellCount method should return the number of rows multiplied by the number of co
 

Microsoft AJAX Library - JavaScript Classes

JavaScript Classes Not only can JavaScript functions contain other functions but they can also be instantiated This makes JavaScript functions a good candidate for implementing the concept of a class from traditional object oriented programming This is very helpful feature indeed because JavaScript
 

Microsoft AJAX Library - Anonymous Functions

Anonymous Functions Anonymous functions can be created adhoc and used instead of a named function Although this can hinder readability when the function is more complex you can do this if you don t intend to reuse a function s code In the following example we pass such an anonymous function to Displ
 

Microsoft AJAX Library - Functions as Variables

Functions as Variables In JavaScript functions are first class objects This means that a function is regarded as a data type whose values can be saved in local variables passed as parameters and so on For example when defining a function you can assign it to a variable and then call the function thr
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape