Hello,
I was wondering if it is possible to add %Script% as a standard macro variable. We have allot of tests in our environment and it would be nice to see how many of a specific Script is being used.
Currently we try to filter on test name, but in some cases the test name isn't enough.
Thanks!
Addition to Expression for view
Hi Alex,
Yes Scripts for Shell Script test method. I know of the usage report, however iet trims the usage list. If you view the list it will show acouple of entries and on the bottom it states: 'and other test items (38 items in total).'
I am looking a way to create a view under views, where i can specify a specific script under Select Items usings expression. Just like you would for example with %TestName%.
So instead the expression 'Executing test' in %TestName% it would be 'Executing script' in %Script%
Yes Scripts for Shell Script test method. I know of the usage report, however iet trims the usage list. If you view the list it will show acouple of entries and on the bottom it states: 'and other test items (38 items in total).'
I am looking a way to create a view under views, where i can specify a specific script under Select Items usings expression. Just like you would for example with %TestName%.
So instead the expression 'Executing test' in %TestName% it would be 'Executing script' in %Script%
There is %path% variable that can be used as parameter of the test (e.g. test comment field) and probably you already set comment field depending on script name (by default HostMonitor uses %path%: %object% as comment for Shell Script tests)
Then you may set View using expression like
'%commentline1%'=='<scriptname>'
or
"<scriptname>" in "%commentline1%"
If you set your tests without using comment field, you may easily change that, using menu Profiles->Patterns->Denomination
PLEASE NOTE: this function may change name/comments for all tests according to specified patterns. If you want to change just script tests, you may save HML file (menu File->Save), apply Denomination function, export Shell Scripts tests into text file, load HML file stored before denomination process (File->New, do not save modified list(!), File->Load), then import Shell Script tests using ImportMode=Modify - insert this line into import file before import procedure)
Regards
Alex
Then you may set View using expression like
'%commentline1%'=='<scriptname>'
or
"<scriptname>" in "%commentline1%"
If you set your tests without using comment field, you may easily change that, using menu Profiles->Patterns->Denomination
PLEASE NOTE: this function may change name/comments for all tests according to specified patterns. If you want to change just script tests, you may save HML file (menu File->Save), apply Denomination function, export Shell Scripts tests into text file, load HML file stored before denomination process (File->New, do not save modified list(!), File->Load), then import Shell Script tests using ImportMode=Modify - insert this line into import file before import procedure)
Regards
Alex
In some cases the used script is mentioned in the comment field, but not always. The denomination change is not an option for us because we regenerate our test and override these settings.
I want to be able to create a view. That finds tests with the test method: Shell script and Scriptfield entry is <name>
The usage only provides me with a short list.
I want to be able to create a view. That finds tests with the test method: Shell script and Scriptfield entry is <name>
The usage only provides me with a short list.