Here is proposition of the test automation architecture I use. Link to git (Sorry, I was asked by my employer to delete this repo). Tests are created with uft-12.52, each build is deployed and/or tested under control of IBM UrbanCode Deploy
.
My project is separated into modules (as the product to be tested) so tests are placed in dir tests\moduleXX\...
Each module tests are divided by some functionality to be tested (e.g. "User creation", "Print account info"...). Trying as much as possible not to create big tests, because if one test fails, another one will continue execution (but still for this purpose you need to use recovery scenarios
the right way, and all test should be independent from each other)
Directories structure contain three main dirs (tests, resources & runresults):
tests \module1\test1
\test2
\test...
\module2\...
\module3\...
\module...
runresults\logs (short text logs with general info about each test execution)
\testresults (stuff generated for Run Results Viewer)
\expected (some expected docs)
resources \reusable actions\common (common reusable actions and for each module)
\module1
\module...
\recovery scenarios
\vbscripts
\libs
\...
All actions that could be reused in several tests are placed in reusable action files (also created with UFT)
Tests are run by vbscript RunTest.vbs. General logging is done in this script e.g. (cols path to test
, exec date & time
, RAM available
, run status
):
------------------------------------------------------------------------------------------------------------------------
Reset test environment: 2016.03.18 - 15.19.36
------------------------------------------------------------------------------------------------------------------------
Reset test environment: 2016.03.18 - 17.17.27
C:\_qtp\tests\_Ne opredelen\S.001 Otkritie glavnih modulei | 2016.03.18 | 17.17.32 -> 17.19.18 | 6,223 | V | Passed
C:\_qtp\tests\Finansovie Licevie Scheta\S.001 Sozdaniye novogo LS s za | 2016.03.18 | 17.19.23 -> 17.20.15 | 6,198 | V | Passed
ved jilca+udaleniye | | | | |
C:\_qtp\tests\Finansovie Licevie Scheta\S.002 TO arest FLS | 2016.03.18 | 17.20.20 -> 17.21.25 | 6,170 | ! | Warning