ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories >> Software >> Testing
 
  Manual-Testing (3955)  QA-Concepts (438)  Mobile-Testing (42)  Test-Cases (219)  Test-Documents-Reporting (38)
  Testing-AllOther (354)
 


 

Back to Questions Page
 
Question
What is the difference between functions and actions in

QTP?
Rank Answer Posted By  
 Question Submitted By :: Sreeprasad
This Interview Question Asked @   Verizon
I also faced this Question!!   © ALL Interview .com
Answer
Reusable Action is peice of code that perform an action on

the application , which has application logic.

On the other hand , Functions does not have the application

logic . It performs a specific action on the data retrieved

from the application and returns the result to the calling

action.

For Ex: Your application has TextBox and Button,

Input : In the textbox we need to enter a numeric value

say 5.

Action : Calculate the Factorial

Expected : Factorial value should be displayed in the

textbox.

Here setting a value to textbox , performing the click

operation and corresponding verification is maintained in

the Action , calculation of the factorial value to arrive

at the expected output we use a Function.
 
0
Sreeprasad
 
 
Answer
Both Actions and Functions are used to access a peace of 
code, that is frequetly used.

The main difference is :
Functions have only application logic, means that we dont 
have access to the resources of a test.
For ex: we need to write a script to access Object 
Repository, Data Table etc....

Actions also have application logic and the resources 
associated with that action.

For Ex:
Say if you want to call a function, here you need to pass 
function name and all other resources like(OR, Data Table 
etc...).
Where as if you call an action, all these resources come 
with action(based on the type of the action).
 
0
Uday Kumar_anem
 
 
Question
What is the difference between low level recording and

analog recording mode when it will be enabled.
Rank Answer Posted By  
 Question Submitted By :: Sreeprasad
This Interview Question Asked @   Ordain-Solutions
I also faced this Question!!   © ALL Interview .com
Answer
Analog Recording enables you to record with respect to

Screen Co-ordinates.

Low Level Recording enable you to record on any object with

repect to window.

2nd answer

Analog Recording, a single recorded statement is created,

so that we cannot edit recorded statements.

Low-Level Recording, statements are generated according to

operation you do on that object. Each statement starts

with "Window". Here we can edit the recorded statements.
 
0
Sreeprasad
 
 
 
Answer
There are some differences between Analog and Low-Level 
Recording modes:
1. Analog mode is useful for recording operations that 
cannot be recorded at the level of an object, for example, 
recording a signature.
Low-Level recording mode enables you to record on any 
object in your application, whether or not QTP recognizes 
the specific object or the specific operation.

2. In analog recording mode, the exact mouse movement and 
keyboard operations are important. Which means that if the 
application is moved to some another place in your desktop 
the test may fail.
You can also use low-level recording if the exact 
coordinates of the object(not the mouse movements) are 
important for your test.

3. A single statement is generated if you working in analog 
mode. Here it records all operations in a single file, and 
just calls to that file. Here we cannot edit the steps in 
analog mode.
For each operation seperate statement will be created in 
Low-level recording mode.
 
0
Uday Kumar_anem
 
 
Answer
analog;it is used 2 capturing the userr movements across 
the screen

or it records the operation performed on bitmap  

low level;it records the operation of mouse n keyboard 
based window coordinates ,it recognises every window as 
object
 
0
Ashok
 
 
Answer
in analog we can capture the digital signature 
but that is not posible wit lowlevel
 
0
Harikrishna M.
 
 
Question
How did u write macros?What is the main importance of

VB macros in testing environment?
Rank Answer Posted By  
 Question Submitted By :: Sreeprasad
I also faced this Question!!   © ALL Interview .com
Answer
A macro is a series of commands that any tool or application

(VB, Editors, Textpad etc) executes automatically. You

create a macro by recording it or writing it yourself. When

you "play back" or run a macro, it repeats the actions you

performed while the Macro recorder was on.

In testing before running actually the scripts or manual

runs, we need to do some initial activities, opening the

QTP/any tool, selecting tests, sheduling them, running

them. All these activities we can record thru macro's and

can run them, to reduce mnual efort and realibility.
 
0
Sreeprasad
 
 
Question
what is the difference between Table checkpoint and

Database checkpoint in QTP
Rank Answer Posted By  
 Question Submitted By :: Sreeprasad
This Interview Question Asked @   Ordain-Solutions
I also faced this Question!!   © ALL Interview .com
Answer
-Table checkpoint lets u verify the table values in the

front end where as database checkpoint lets u verify the

table values in the back end. For database checkpoint u

should create the data source to get connected to the back

end data base via driver. Table checkpoint simply captures

the table values in the user interface.
 
0
Sreeprasad
 
 
Answer
Table checkpoint is used to check the contents of a
webtable.
Database checkpoint is used to check the contents of a 
database using sql queries
 
0
Satyanarayana.a
 
 
Question
what is the difference between window command and

dialog command
Rank Answer Posted By  
 Question Submitted By :: Sreeprasad
I also faced this Question!!   © ALL Interview .com
Answer
window command work with only window in your application,

but dialog command should work with window command.

ex.window("shopping").activate

incase of dialog box: u should with window command

that is window("shopping").windialog("items")
 
0
Sreeprasad
 
 
Question
what is a file system object in QTP
Rank Answer Posted By  
 Question Submitted By :: Sreeprasad
I also faced this Question!!   © ALL Interview .com
Answer
File System is used to create file through scripting.We can

read, write and save data in txt file and use it after

wards during testing. Here is example of creating txt file

through FSO

Const ForReading = 1, ForWriting = 2

Dim fso, MyFile

Set fso = CreateObject("Scripting.FileSystemObject")

Set MyFile = fso.OpenTextFile("c:testfile.txt",

ForWriting, True)

MyFile.WriteLine "Hello world!"

MyFile.WriteLine "The quick brown fox"

MyFile.Close

Set MyFile = fso.OpenTextFile("c:testfile.txt",

ForReading)

ReadLineTextFile = MyFile.ReadLine ' Returns "Hello

world!"

It will create testfile.txt and enter "This is a test" in

that text file. You can later read that line "This is a

test" from this file while using

MyFile.ReadLine

We can save variables data during testing and then use that

data in future instances of testing and then delete that

file.
 
0
Sreeprasad
 
 
Answer
In simple terms "Filesystemobject" is an object model which 
is used to handle the drives, folders, and files of a 
system or server. 

If an user needs to work Driver, Folder, Files properties, 
methods or events then the first step he need to setup is 
filesystemobject.

Hope this helps. Let me know if you need an example.
 
0
Bala
 
 
Answer
Hai Bala,

Just now i read ur defination on File system object.
well, it would be more specific ,if u could explain with an 
example...
I appreciate,if u can do that now.
Thx.
 
0
Prashanthkumar
 
 
Question
how to identify an object which is not in the object

repository identification can be done using descriptive

programming.
Rank Answer Posted By  
 Question Submitted By :: Sreeprasad
I also faced this Question!!   © ALL Interview .com
Answer
Here is example # 1 with description object.

set EditDesc = Description.Create()

EditDesc("Name").Value = "userName"

EditDesc("Index").Value = "0"

Browser("Welcome: Mercury").Page("Welcome: Mercury").WebEdit

(EditDesc).Set "MyName"

Here is example # 2 with out description object.

Dialog("text:=Login").WinEdit("window id:=3001","attached

text:=Agent.*").Set "john"

Dialog("text:=Login").WinEdit("window id:=2000","attached

text:=Password:").Set "mercury"

Dialog("text:=Login").WinButton("text:=OK").Click

These both method will be used in expert view to identify

object with out object avaialble in object repository
 
0
Sreeprasad
 
 
Answer
Hi sreeprasad u r absolutely correct. But i want you to 
update few more things. Please tell me if there is a web 
browser and suppose take a gmail or yahoo mail user id and 
password and signin button and forget password. I want 
these four to identify using descriptive programming. Can u 
please solve this. And send to my mail id: 
sagar.iacr@gmail.com

If you have any descriptive programming documents can u 
send it to my id please.

Thanks in advance.
 
0
Sagar Kuamr Sutar
 
 
Question
how qtp handles customised object
Rank Answer Posted By  
 Question Submitted By :: Sreeprasad
I also faced this Question!!   © ALL Interview .com
Answer
-QTP handles the customised objects by using virtual

objects.

By using virtual object " customised objests are converted

in to standared objects", bcz qtp sometimes cannot

recognise the objects.

goto tools menu --> select new virtual object --> select

the standed classname ( i.e object, button, check

point ......) --> select the mark object-->select the

customized object --> enter name -->ok

While recording the script qtp adds the customized object

in object repositary.
 
0
Sreeprasad
 
 
Question
Hi Guys, In one of my interviews, I was asked to Write a

paragaraph explaining how much scripting I did in QTP? I

don't know where to start and what to write. So I need your

help in writing that.
Rank Answer Posted By  
 Question Submitted By :: Sreeprasad
I also faced this Question!!   © ALL Interview .com
Answer
I think in order to test your skills in QTP they must have

asked like that.You must have taken one screen in your

project and must have written Script for that.For Example i

think you are familiar with Login page which has the

username and password textfields with Login Button.

Step1:

Open QTP and load the Webaddins and VB addins if required.

In New test, First Learn the Objects "Username

textfield,Password textfield,Login button" of that Login

page using "Add object" Concept in "Object Repository" and

adds the objects information to the ObjectRepository.

Step2:Go to Expert view and then start writing the Script

as

Browser("Login").Page("Login").WebEdit

("username").Set "username" --- 1

1--- this script enters the data "username" into the

username field by placing the cursor to the username field

which is in the page "Login" of Browser "Login"

Browser("Login").Page("Login").WebEdit

("username").SetSecure "password" -2

2--- this script enters the data "password " in secure

format in the password field by placing the cursor to the

password field which is in the page "Login" of

Browser "Login".

Browser("Login").Page("Login").WebButton("Login").Click

---this script clicks on the Login button by placing the

cursor on the Login button which is in the page "Login" of

Browser "Login.

This is how you need to explain the script what you have

written.

Regards,

2nd answer

You can tell them that you have used some "Condition

Statements" to check the records in your database.

IF Condition THEN

Reporter.reportevent "-------"

END IF

3rd answer

1# Scripting in QTP is about working in expert view.

2# Creating User defined Functions using VB Scripts.

3# Using Conditional loops.

4# Manipulating with Functions, Test objects and Utilities.

5# Creating Libraries, creating startup script, creating

init script.
 
0
Sreeprasad
 
 
Question
what is a active x control?can any one brief me about

active x controls
Rank Answer Posted By  
 Question Submitted By :: Sreeprasad
I also faced this Question!!   © ALL Interview .com
Answer
Active X control is a set of rules for how applications

should share information.Programmers can develop ActiveX

controls in a variety of languages, including C,C++, Visual

Basic, and java.
 
0
Sreeprasad
 
 
Question
Did you use flatfiles in your projects?At what situation

you used it?How can you upload flatfiles?
Rank Answer Posted By  
 Question Submitted By :: Sreeprasad
I also faced this Question!!   © ALL Interview .com
Answer
flat files are simply like a notepad fiel with an

extension filename.db these files are created[ application

specific ] by an application when an backend like oracle ,

sqlserver are not used .the data stored in the files are

sequential in order and data retrieval is sequencial order.

time consuming if ample of data is stored.mostly small

organisation's application use this where they cant afford

sql ,sqlserver etc
 
0
Sreeprasad
 
 
Question
How to access values from Unix OS and how to write..
Rank Answer Posted By  
 Question Submitted By :: Sreeprasad
I also faced this Question!!   © ALL Interview .com
Answer
Using the RTE[Remote terminal emulator] protocol. using

this any remote terminal can be invoked. eg. Unix,

Linux,Solaris, Mainframe
 
0
Sreeprasad
 
 
Question
What is BPT?
Rank Answer Posted By  
 Question Submitted By :: Sreeprasad
I also faced this Question!!   © ALL Interview .com
Answer
BusinessProcess Testing enables non-technical Subject

Matter Experts (working inQuality Center) to collaborate

effectively with Automation Engineers (working in QuickTest

professional). Together, you can build, document,and run

business process tests, without requiring programming

knowledge on the part of the Subject Matter

Expert.Components are easily-maintained, reusable units

that perform a specific task. They are the building blocks

of business process tests. Each component is comprised of

several application steps that are logically performed

together in a specific order. For example, in a Web

application, a login component might be comprised of four

steps. Its first step could be to open the application. Its

second step could be to enter a user name. Its third step

could be to enter a password, and its last step could be to

click the Submit button on the Web page. By creating and

calling functions stored in function libraries, you can

enhance the component with additional logic to test

important details of the login task. By design, each

component tests a specific part of an application. When

combined, components are incorporated into a business

process test in a

serial flow representing the main tasks performed within a

particular business process. For example, a business

process test for a flight reservation application may

include a login component, a flight finder component, a

flight reservation component, a purchasing component, and a

logout component.
 
0
Sreeprasad
 
 
Answer
Mercury Interactive Updates BPT Software :-

Business process Testing it is in I have seen it is 
extension to Quality Center. This is Launched last 
(8/3/2005)(mm/dd/yyyy) September Mercury's BPT tool was 
created to enable business-process owners and designers to 
work with software QA teams to test mission-critical 
applications. As part of Mercury's Quality Center suite, 
BPT “closes the gap between the business people who design 
the business processes and the technical people who design 
and deliver the applications,” Mercury's CMO Christopher 
Lochhead told AppTrends.
 
0
Penisetty
 
 
Question
What is output value?
Rank Answer Posted By  
 Question Submitted By :: Sreeprasad
I also faced this Question!!   © ALL Interview .com
Answer
An output value is a value retrived during the test run and

entered into your data table. You can subsequently use this

output value as input data in your test. This enables you

to use data retrived during a test in other parts of the

test.
 
0
Sreeprasad
 
 
Answer
An output value is a step in which one or more values are 
captured at a specific point in your test and stored for 
the duration of the run session.The values can later be 
used as a input at a different point in the run session.It 
is stored duting run-time in the data table and can be 
retrieved later
 
5
Suja S
 
 
Question
It is very difficult to test in manual for that we go to

DATA DRIVEN TEST.
Rank Answer Posted By  
 Question Submitted By :: Sreeprasad
I also faced this Question!!   © ALL Interview .com
Answer
Here difficulty is no the matter,We can also do manually if 
lot of time is there for testing,But when we have no time 
for manually testing bundles of test data,at that time, we 
go for Data driven test
 
0
Santhosh
 
 
Answer
To execute the multipul data at a time as well as you can 
take expected resuld.
In manually so difficult to execute all test cases at a 
time.
 
0
Srikanth
 
 
Answer
in manual we can't use this condept
 
0
Mani
 
 
 
Back to Questions Page
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com