Addition to Expression for view

Need new test, action, option? Post request here.
Post Reply
rdiroen
Posts: 7
Joined: Mon Oct 14, 2019 3:01 am

Addition to Expression for view

Post by rdiroen »

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!
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

What kind of script? Scripts for Shell Script test method?
There is "Usage report" button in Script Manager dialog

Regards
Alex
rdiroen
Posts: 7
Joined: Mon Oct 14, 2019 3:01 am

Post by rdiroen »

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%
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
rdiroen
Posts: 7
Joined: Mon Oct 14, 2019 3:01 am

Post by rdiroen »

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.
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Ok, we added task into "to do" list

Regards
Alex
rdiroen
Posts: 7
Joined: Mon Oct 14, 2019 3:01 am

Post by rdiroen »

Hi Alex,

Thanks!
Post Reply