View previous topic :: View next topic |
Author |
Message |
rdiroen
Joined: 14 Oct 2019 Posts: 7
|
Posted: Mon Oct 14, 2019 3:13 am Post subject: Addition to Expression for view |
|
|
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! |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Mon Oct 14, 2019 3:27 am Post subject: |
|
|
What kind of script? Scripts for Shell Script test method?
There is "Usage report" button in Script Manager dialog
Regards
Alex |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
rdiroen
Joined: 14 Oct 2019 Posts: 7
|
Posted: Mon Oct 14, 2019 3:53 am Post subject: |
|
|
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% |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Mon Oct 14, 2019 4:12 am Post subject: |
|
|
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 |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
rdiroen
Joined: 14 Oct 2019 Posts: 7
|
Posted: Thu Oct 17, 2019 2:50 am Post subject: |
|
|
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. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Fri Oct 18, 2019 1:34 pm Post subject: |
|
|
Ok, we added task into "to do" list
Regards
Alex |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
rdiroen
Joined: 14 Oct 2019 Posts: 7
|
Posted: Mon Oct 21, 2019 3:19 am Post subject: |
|
|
Hi Alex,
Thanks! |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|