KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Addition to Expression for view

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Wish list
View previous topic :: View next topic  
Author Message
rdiroen



Joined: 14 Oct 2019
Posts: 6

PostPosted: Mon Oct 14, 2019 3:13 am    Post subject: Addition to Expression for view Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12100
Location: USA

PostPosted: Mon Oct 14, 2019 3:27 am    Post subject: Reply with quote

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

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
rdiroen



Joined: 14 Oct 2019
Posts: 6

PostPosted: Mon Oct 14, 2019 3:53 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12100
Location: USA

PostPosted: Mon Oct 14, 2019 4:12 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
rdiroen



Joined: 14 Oct 2019
Posts: 6

PostPosted: Thu Oct 17, 2019 2:50 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12100
Location: USA

PostPosted: Fri Oct 18, 2019 1:34 pm    Post subject: Reply with quote

Ok, we added task into "to do" list

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
rdiroen



Joined: 14 Oct 2019
Posts: 6

PostPosted: Mon Oct 21, 2019 3:19 am    Post subject: Reply with quote

Hi Alex,

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Wish list All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index