Huge refactoring. Sorry, I hope this is the last huge one :)
- clickCmp -> click
- All component action functions previously taken object as parameter, but now they take common argument list.
- Inheritance, just like in ExtJs is used in TIA EJ API now.
- Added a few functions to EJ Component and to Selenium API.
- Changed
Sending
toSend
in Selenium API logging. - Removed
setText
fromtextfield
, use API from Component, there are many functions for text input, includingCtrl + a
usage.
Changed names of functions started with selectAll
.
selectAllAndSendKeys*
-> sendCtrlAAndKeys*
.
selectAllSendKeys*
-> sendCtrlAKeys*
.
Published by accident. No breaking changes.
Renaming:
any
tocomponent
.table
totableview
.tree
totreeview
.
combobox: select renamed to setByKbd. Some methods are added for combobox, checkbox, textfield. See API docs for details.
EJ Explorer now shows how to access API for the Component under cursor.
logAction renamed to enableLog. Changed ExtJs Any Component API (parameters are an object now).
Test configs are moved to gT: gIn.config -> gT.config Cmd line params are moved to gT: gIn.params -> gT.cLParams
Minimal supported Node.js version is 10.15.1 now.
Changed work with new files.
See --new
option description in tia -h
.
And for future. If I will forget to describe smth, you could start
using diff tia -h
with previous version.
Directory structure is changed to don't mess with other engines:
__tests__
renamed to __tia-tests
, _tia
renamed to _tia-suite
.
sudo apt-get install rename
find -maxdepth 10 -type d -name "__tests__" -exec prename 's/__tests__/__tia-tests__/' {} \;
find -maxdepth 10 -type d -name "_tia" -exec prename 's/_tia/_tia-suite/' {} \;
<prjRoot>
now contains __tia-tests__/_tia-root
.
_tia/root.log
is moved to _tia-root
.
tia-root-suite-config.js
, tia-root-dir-config.js
are also moved to _tia-root
.
tia-suite-config.js
is moved to _tia-suite
.
Also __tests__
in root suite logs is replaced by root directory base name for .
Root directory base name can be different on different developers machines,
so rootDirAlias option is added to tia-global-config.js.
Also __tests__
is removed from suite logs.
Also added new config type - __tia-tests__/_tia-root/tia-global-config.js
.
Any global stuff can be saved here.
See config/default-global-config.js
for options used by TIA.
-
Now the engine is received the root tests directory and searches for all
__tia-tests__
subdirectories in the root directory. All files with suffix.tia.js
are considered as tests to be runned. -
Before there were
--tests-dir
andTIA_TESTS_DIR
, now there--root-dir
andTIA_ROOT_DIR
. -
Now each project can contain many
__tia-tests__
directories, and these directories called "test suites". Each such directory can containsuite-config.js
. -
A new term 'suite log', previously 'meta log', it is digest for all tests in suite, as before can contain log diffs.
log.s, log.et.
-
A new term 'root dir log', it is digest for all tests in root dir.
-
Each
__tia-tests__
directory contains__tia__
directory. It keeps suite log (in various formats), etalon suite log, info about resources usage. -
Before path to metalog was specified by --et-mlog cmd line option. Now for
someDir/__tia-tests__
the suite ethalon log is expected to be insomeDir/__tia-tests__/__tia__/suite.et
. And for test root dir the ethalon log is expected to be in<root>/__tia__/project.et
. -
Browser profiles now are keeped in
__tests/__tia__/browser-profiles
. Before they where in <parent of --tests-dir>/br-profiles.