Micro Focus QTP (UFT) Forums
Regarding Action 0 and Action 1 - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Regarding Action 0 and Action 1 (/Thread-Regarding-Action-0-and-Action-1)



Regarding Action 0 and Action 1 - Shahin - 05-26-2008

Hi,
I am new to QTP.
can any one please explain why Action 0 and Action 1 Folders, both are created in a script folder when we create a new script?

thanks in advance
Shahin


RE: Regarding Action 0 and Action 1 - Ankur - 05-26-2008

Nice question...

Other than .bdb and .mtr files, Action0 contains .mts files which consists of RunAction statements for each Action contained in your testcase. Check out for yourself. You can use it to your advantage, tell me how??

Action1 is like other normal action files which contains info regarding the current action.


RE: Regarding Action 0 and Action 1 - somisays - 05-26-2008

Dear Shahin,

1)When you create any test in QTP and save it by giving a name.
A testname direcctory is automatically created and all the files and folders related to the test are saved in the testname directory.

2)By Default QTP creates certain files and directories in each test directory .

3)These are the following folders and files
a)Action0 folder : This directory contains files that control all action except Action0,in the test directory.
b)Action1: This directory contains log of user acions on the objects as these were captured during recording.
c)Script.mtr: This file captures the user actions on objects. This file resides in the ACTION1 directory.
d)Default.xls :This file contains the data that you specify in DATA TABLE to parameterize your test.
e)Snaphsots folder:This file contatins the snapshots of each screen recording on the application and this folder is stored in Action1 folder.

f)For each action folder contains three other files named Resources.mtr(Which contains resources for that action),ObjectRepository.bdb(Which contains object list fot that action),Script.mts(Which contains the script for that action).

Hope this is going to be helpful to you...

But donot woory abt this folder structure...

First learn the tool...

Regards
Sridhar


RE: Regarding Action 0 and Action 1 - lunamaria0808 - 06-09-2009

Yes snaphsots folder contains the snapshots files of each screen recording on the application and this folder is stored in Action1 folder...