Product QA
Type changed
Title Screenshots of dialogs taken by TestTool application
Posted by [EMAIL PROTECTED]
Affected ,qa/qatesttool/global
Effective from cvs: 29.03.2006


API/ BASIC [ ]
Configuration [ ]
File format change [ ]
Help/ Guide [ ]
Performance test [ ]
Translation [ ]
UI relevant [ ]

Description
Modification to make screenshots of dialogs
-------------------------------------------

Just add an entry to your .testtoolrc/.ini while the VCL TestTool
application is not running:

[Screenshot]
Current=1
All=1;0;true;false

1 or true: Make Screenshots.
0 or false: Don't do that.

If your testrun is enabled for screenshots, a line is printed in the
header of the result file:

** There will be screenshots taken from every dialog

The Screenshots are triggered by the function 'DialogTest (window,
optional id)'
(Deprecated function DialogTest2 (window, id))
from the file qa/qatesttool/global/tools/inc/t_tools1.inc
If a window is unique, you just use DialogTest (window);
If a window content is changeable, an id is added, to distinguish the
sreenshots

The screenshots are saved in the user config directory:
user/work/screenshots + language id number + /application name/
The fileformat is BMP.

The file name is the HelpID of the dialog + .bmp.
If there is more than one shot taken of the dialog, then the file name is:
HelpID + _i + .bmp, with i like 1,2,3,...

The function is used in the Update/Resource Tests of each application:
qa/qatesttool/writer/update/w_updt.bas
qa/qatesttool/calc/update/c_updt.bas
qa/qatesttool/graphics/update/i_updt.bas
qa/qatesttool/base/update/b_updt.bas
qa/qatesttool/math/update/m_updt.bas
qa/qatesttool/framework/update/f_updt_basic.bas
qa/qatesttool/framework/update/f_updt_basicorganizer.bas
qa/qatesttool/framework/update/f_updt_customize.bas
qa/qatesttool/framework/update/f_updt_agendawizard.bas
qa/qatesttool/framework/update/f_updt_faxwizard.bas
qa/qatesttool/framework/update/f_updt_firsttimewizard.bas
qa/qatesttool/framework/update/f_updt_letterwizard.bas
qa/qatesttool/framework/update/f_updt_mailmerge.bas
qa/qatesttool/framework/update/f_updt_spadmin.bas
qa/qatesttool/framework/update/f_updt_wizard_webpage.bas

Modified files:
qa/qatesttool/global/system/inc/master.inc
call to sGetScreenshotValue and set global variable gbSnapShot

qa/qatesttool/global/tools/inc/t_tools1.inc
merged functions DialogTest and DialogTest2

qa/qatesttool/global/system/inc/iniinfo.inc
home of function sGetScreenshotValue


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to