UFT Class xv (Actions inwards UFT)
--------------------------
Actions
What is Action?
Test- One or to a greater extent than actions to perform operations
Action - Set of statements or steps to perform operations
Statement/step - a minimal executable unit
Note: One exam may accept 1 or to a greater extent than actions
One disceptation / stride may accept 1 or to a greater extent than lines together with vice versa
Purpose of Actions
Test1 (1 Action) Test2 (3 Actions)
------------------------------------------------------
Performance High Low
-----------------------------------------------------
* Reusability Less/No More
---------------------------------------------------
Readability Low High
------------------------------------------------
Locating Errors Diff Easy
-------------------------------------------------
Types of Actions
a) Reusable Action
It tin last used multiple times inwards the Home tests together with from other Tests
It tin last called a second good every bit copied
Calling - Only execution, nosotros can't edit the code
(Centralized maintenance of Actions)
Coping - Execute together with Edit the code
(No Centralized maintenance of Actions)
b) Non-reusable Action
It tin last used exclusively 1 time inwards the Home Test
It can't last called exactly copied
---------------------
c) External Action
It is null exactly Reusable inwards the Home Test, calling Test indicate of persuasion External.
Test1 Test2
--------------------------------------------------------
Login(Reusable) ------------> Login (External Action)
Insert Order(Non-reusable) Open Order(Reusable)
Fax Order(Non-reusable)
------------------------------------------------------
Operations on Actions
Create New Action
Rename Action
Delete Action
Call to Existing Action
Copy Action
Make Reusable Action every bit Non-reusable together with vice versa
Action Parameters
Input parameters
Output parameters
a) Create New Action
Navigation:
Create New Test
> Design bill of fare > Call to New Action
> Enter Action Name (If you lot don't desire the default Name)
> Write Description (Optional)
> If desire to practise Non-reusable Action together with thus Uncheck Reusable Action cheque box
> Click OK
-------------------------------
Creating a Test using multiple Actions
Create New Test
> Create New Actions (One yesteryear one)
> Generate script for every Action
---------------------------------------
b) Rename Action
Select the Test
> Select required Action together with Right click
> Select "Action Call properties"
> Change the Name
> Click OK
> Conform
--------------------------------------
c) Make Reusable Action every bit Non-reusable together with vice versa
Note: We tin practise Reusable or Non-reusable actions piece creating the actions or
After creating the Action.
Reusable to Non-Reusable:
Select the Test inwards UFT Editor View
> Select required Action together with Right click
> Select Action Properties
> Uncheck "Reusable Action" Check box
> Click Ok
> Conform
-----------------------------------
Non-Reusable to Reusable
Select the Test inwards UFT Editor View
> Select required Action together with Right click
> Select Action Properties
> Check "Reusable Action" Check box
> Click Ok
> Conform
--------------------------
d) Call to Existing Action
Design menu
> Call to Existing Action
> Browse path of the Test
> Select required Action
> Ok
----------------------------------
e) Call to re-create of Action
Design menu
> Call to re-create of Action
> Browse path of the Test
> Select withdraw Action
> OK
----------------------------------
f) Delete Action
Select the Test
> pick out required Action together with Right click
> Select "Delete Action"
> OK
------------------------------------------
g) Action Parameters
Input parameters
To overstep away input data, nosotros tin overstep away unmarried value or multiple values
Purpose of Action Input parameters:
If nosotros don't purpose input parameters together with thus fixed input information for every calling Action
If nosotros purpose input parameters together with thus nosotros tin overstep away dissimilar values together with multiple values also.
How to Create Action input parameters
Select the Test
> Select Action together with Right click
> Select Action Properties
> Select "Parameters" tab
> Add Input parameters 1 yesteryear 1 together with laid default value (If required)
> Ok
---------------------
How to connect:
In Editor view
Type Parameter("ParameterName")
-----------------------------------------------
Assignment:
Give an event for Action Output Parameters
To provide the Test result.
--------------------------
Actions
What is Action?
Test- One or to a greater extent than actions to perform operations
Action - Set of statements or steps to perform operations
Statement/step - a minimal executable unit
Note: One exam may accept 1 or to a greater extent than actions
One disceptation / stride may accept 1 or to a greater extent than lines together with vice versa
Purpose of Actions
Test1 (1 Action) Test2 (3 Actions)
------------------------------------------------------
Performance High Low
-----------------------------------------------------
* Reusability Less/No More
---------------------------------------------------
Readability Low High
------------------------------------------------
Locating Errors Diff Easy
-------------------------------------------------
Types of Actions
a) Reusable Action
It tin last used multiple times inwards the Home tests together with from other Tests
It tin last called a second good every bit copied
Calling - Only execution, nosotros can't edit the code
(Centralized maintenance of Actions)
Coping - Execute together with Edit the code
(No Centralized maintenance of Actions)
b) Non-reusable Action
It tin last used exclusively 1 time inwards the Home Test
It can't last called exactly copied
---------------------
c) External Action
It is null exactly Reusable inwards the Home Test, calling Test indicate of persuasion External.
Test1 Test2
--------------------------------------------------------
Login(Reusable) ------------> Login (External Action)
Insert Order(Non-reusable) Open Order(Reusable)
Fax Order(Non-reusable)
------------------------------------------------------
Operations on Actions
Create New Action
Rename Action
Delete Action
Call to Existing Action
Copy Action
Make Reusable Action every bit Non-reusable together with vice versa
Action Parameters
Input parameters
Output parameters
a) Create New Action
Navigation:
Create New Test
> Design bill of fare > Call to New Action
> Enter Action Name (If you lot don't desire the default Name)
> Write Description (Optional)
> If desire to practise Non-reusable Action together with thus Uncheck Reusable Action cheque box
> Click OK
-------------------------------
Creating a Test using multiple Actions
Create New Test
> Create New Actions (One yesteryear one)
> Generate script for every Action
---------------------------------------
b) Rename Action
Select the Test
> Select required Action together with Right click
> Select "Action Call properties"
> Change the Name
> Click OK
> Conform
--------------------------------------
c) Make Reusable Action every bit Non-reusable together with vice versa
Note: We tin practise Reusable or Non-reusable actions piece creating the actions or
After creating the Action.
Reusable to Non-Reusable:
Select the Test inwards UFT Editor View
> Select required Action together with Right click
> Select Action Properties
> Uncheck "Reusable Action" Check box
> Click Ok
> Conform
-----------------------------------
Non-Reusable to Reusable
Select the Test inwards UFT Editor View
> Select required Action together with Right click
> Select Action Properties
> Check "Reusable Action" Check box
> Click Ok
> Conform
--------------------------
d) Call to Existing Action
Design menu
> Call to Existing Action
> Browse path of the Test
> Select required Action
> Ok
----------------------------------
e) Call to re-create of Action
Design menu
> Call to re-create of Action
> Browse path of the Test
> Select withdraw Action
> OK
----------------------------------
f) Delete Action
Select the Test
> pick out required Action together with Right click
> Select "Delete Action"
> OK
------------------------------------------
g) Action Parameters
Input parameters
To overstep away input data, nosotros tin overstep away unmarried value or multiple values
Purpose of Action Input parameters:
If nosotros don't purpose input parameters together with thus fixed input information for every calling Action
If nosotros purpose input parameters together with thus nosotros tin overstep away dissimilar values together with multiple values also.
How to Create Action input parameters
Select the Test
> Select Action together with Right click
> Select Action Properties
> Select "Parameters" tab
> Add Input parameters 1 yesteryear 1 together with laid default value (If required)
> Ok
---------------------
How to connect:
In Editor view
Type Parameter("ParameterName")
-----------------------------------------------
Assignment:
Give an event for Action Output Parameters
To provide the Test result.