Wednesday, 14 August 2013

What is Filter

Filter – It is a Linux command accepts its input from the standard input and produces its
output on standard output is know as a filter. A filter performs some kind of process on the input and gives output. For e.g.. Suppose we have file called ‘abc.txt’ with 100 lines data, And from ‘abc.txt’ we would like to print contains from line number 20 to line number 30 and store this result to file called ‘hlist’ then give command
$ tail +20 hlist
Here head is filter which takes its input from tail command (tail command start
selecting from line number 20 of given file i.e. abc.txt) and passes this lines to
input to head, whose output is redirected to ‘hlist’ file.

Rules for Naming Variable Name (Both UDV and System Variable)

(1) Variable name must begin with Alphanumeric character or underscore character (_), followed by
one or more Alphanumeric character. For e.g. Valid shell variable are as follows
HOME
SYSTEM_VERSION
vech
no
(2) Don’t put spaces on either side of the equal sign when assigning value to variable. For e.g.. In
following variable declaration there will be no error
$ no=10
But here there will be problem for following
$ no =10
$ no= 10
$ no = 10
(3) Variables are case-sensitive, just like filename in Linux. For e.g.
$ no=10
$ No=11
$ NO=20
$ nO=2
Above all are different variable name, so to print value 20 we have to use $ echo $NO and Not any
of the following
$ echo $no # will print 10 but not 20
$ echo $No # will print 11 but not 20
$ echo $nO # will print 2 but not 20
(4) You can define NULL variable as follows (NULL variable is variable which has no value at the time
of definition) For e.g.
$ vech=
$ vech=”"
Try to print it’s value $ echo $vech , Here nothing will be shown because variable has no value i.e.
NULL variable.
(5) Do not use ?,* etc, to name your variable names.

How to Print or Access Value of UDV (User Defined Variables)

To print or access UDV use following syntax
Syntax: $variablename
For eg. To print contains of variable ‘test’
$ echo $test
It will print ‘Bus’ (if previously defined as test=Bus) ,To print contains of variable ‘n’ $ echo $n
It will print ‘10′ (if previously defined as n=10)
Caution: Do not try $ echo test It will print test instead its value ‘Bus’ and $ echo n, It will print
n instead its value ‘10′, You must use $ followed by variable name.

QTP - Analog Recording

Analog Recording. Enables you to record the exact mouse and keyboard operations you perform in relation to either the screen or the application window. In this recording mode, QuickTest records and tracks every movement of the mouse as you drag the mouse around a screen or window. This mode is useful for recording operations that cannot be recorded at the
level of an object, for example, recording a signature produced by dragging the mouse.
Note: You cannot edit Analog Recording steps from within QuickTest.

QTP - DataTable Object & Its Function

DataTable Object
Note: All methods performed on this object apply to the run-time DataTable object only. Changes to the run-time DataTable object are reflected in the test results, but the design-time Data Table is not affected.
Associated Methods
AddSheet Method
DeleteSheet Method
Export Method
ExportSheet Method
GetCurrentRow Method
GetRowCount Method
GetSheet Method
GetSheetCount Method
Import Method
ImportSheet Method
SetCurrentRow Method
SetNextRow Method
SetPrevRow Method