View previous topic :: View next topic |
Author |
Message |
V Arun
Joined: 11 Apr 2004 Posts: 52
|
Posted: Fri Nov 30, 2007 9:37 am Post subject: Search and Replace |
|
|
Alex,
I would like to search for a particular sting in all comment lines of all tests and replace it with another string where found. How do I do it?
For ex. 'Arun' might be in a commentline in 50 tests. I like to replace it with 'Alex' OR even delete it.
Thanks,
Arun |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12801 Location: USA
|
|
Back to top |
|
|
V Arun
Joined: 11 Apr 2004 Posts: 52
|
Posted: Sat Dec 01, 2007 1:21 am Post subject: |
|
|
Alex,
This procedure appears cumbersome. My situation is like this. For ex. commentline2 of all tests contain some names like abc, def, xyz etc. 'def' may appear in 100 out of 200 total tests. I just need to replace 'def' with 'klm' wherever it appears but keeping 'abc' & 'xyz' intact.
We enter mobile numbers OR email addresses in this commentline for SMS alerts. We need to do this pretty often due to rotating staff and need a simple procedure.
Highly appreciate.
Regards,
Arun. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12801 Location: USA
|
|
Back to top |
|
|
V Arun
Joined: 11 Apr 2004 Posts: 52
|
Posted: Sat Dec 01, 2007 12:09 pm Post subject: |
|
|
Was already thinking on those lines . I have a common mail action profile where i customize the recepients of that particular test in commenline2.
Is the below scenario permitted ?
"To" field in mail action profile = %commentline2%
commentline2= %udv_network%
udv_network= %alex%, %arun%
udv_alex= %12345%
udv_arun= %67890%
Is there any limitation on the number of user defined variables that can be created? Are these stored in an accessible text file? Is it possible to search and replace udv parameters?
Regards,
Arun. |
|
Back to top |
|
|
V Arun
Joined: 11 Apr 2004 Posts: 52
|
Posted: Sat Dec 01, 2007 12:11 pm Post subject: |
|
|
sorry for the typo earlier..
udv_network= %udv_alex%, %udv_arun% |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12801 Location: USA
|
Posted: Sun Dec 02, 2007 9:50 am Post subject: |
|
|
Quote: | Is the below scenario permitted ?
"To" field in mail action profile = %commentline2%
commentline2= %udv_network%
udv_network= %udv_alex%, %udv_arun%
udv_alex= %12345%
udv_arun= %67890% |
Yes, this should work
Quote: | Is there any limitation on the number of user defined variables that can be created? |
Everything is limited in this word. I think you may create up to 2147483646 variables.
Quote: | Are these stored in an accessible text file? |
No
Quote: | Is it possible to search and replace udv parameters? |
Search and replace? No. But you may set variables automatically using HM Script
Regards
Alex |
|
Back to top |
|
|
V Arun
Joined: 11 Apr 2004 Posts: 52
|
Posted: Thu Dec 06, 2007 11:46 am Post subject: |
|
|
Thanks Alex.
I still feel it would be a great feature to have some kind of GUI or a better way to create, mangage and arrange UDVs. It would be really helpful.
Highly appreciate.
Regards,
Arun |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Thu Dec 06, 2007 11:57 am Post subject: |
|
|
V Arun wrote: | I still feel it would be a great feature to have some kind of GUI or a better way to create, mangage and arrange UDVs. It would be really helpful. | Actually, GUI has been implemented a while ago. You may manage and arrange UDV variables using menu "Profiles" -> "Global Macro Variables".
Regards,
Max |
|
Back to top |
|
|
V Arun
Joined: 11 Apr 2004 Posts: 52
|
Posted: Fri Dec 07, 2007 12:29 am Post subject: |
|
|
Hi Max,
This is what we have been using so far.
My request is for a facility to drag and drop different objects into different groups. Before deleting any object, good to have a warning where it is currently being used. Also, these variables to be available while editing test properties. For ex. email OR sms recepients of a particular test is defined in Commentline1 of that test. When I goto Commentline1, it would be nice to call the list of UDV groups there and apply through drag and drop facility.
Something like this would be a great feature.
Regards,
Arun |
|
Back to top |
|
|
Stoltze
Joined: 03 Feb 2004 Posts: 174 Location: Denmark
|
Posted: Tue Dec 11, 2007 2:01 pm Post subject: |
|
|
V Arun wrote: | When I goto Commentline1, it would be nice to call the list of UDV groups there and apply through drag and drop facility. |
I will support this feature request as well.. Especially with global macros, since I have otherwise have to remember these..
With standard macros its different, since these can be seen through Help whereever you are..
But, drag and drop from standard macros would also be nice to have feature... |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12801 Location: USA
|
Posted: Tue Dec 11, 2007 3:27 pm Post subject: |
|
|
Probably we can implement some "expression editor"
Regards
Alex |
|
Back to top |
|
|
V Arun
Joined: 11 Apr 2004 Posts: 52
|
Posted: Sun Jan 06, 2008 7:29 am Post subject: |
|
|
Yes... An expression editor would be great to begin with. Will be eagerly waiting for one..
Thanks Alex,
Arun |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Sun Jan 06, 2008 8:50 am Post subject: |
|
|
V Arun wrote: | Yes... An expression editor would be great to begin with. Will be eagerly waiting for one.. | This feature has been already implemented in version 7.06
Quote:
http://www.ks-soft.net/hostmon.eng/news.htm
=======================================
HostMonitor and RCC: there are special buttons in Test Properties dialog that allow you to bring up special "Expression editor" window for "Warning", "Normal", and "Tune up Reply" expressions editing. Expression editor shows list of standard and user defined macro variables, also it allows each operator to create his own "favorite" list of variables. There are buttons that allow you to filter standard macro variables by category.
Several menu items help to work with variables (popup menu appears when you click right mouse button on macro variable in the list):
* Insert into expression (equivalent to double click on the variable)
* Add variable to favorites (Ctrl+C)
Favorite variables can be moved up (Ctrl+Up) and down (Ctrl+Down) or sorted alphabetically
=======================================
Version 7.06 is available to download at our site: http://www.ks-soft.net/hostmon.eng/downpage.htm
Regards,
Max |
|
Back to top |
|
|
V Arun
Joined: 11 Apr 2004 Posts: 52
|
Posted: Mon Jan 07, 2008 10:57 pm Post subject: |
|
|
Can the expression editor be made available at other places. For ex.
1. Inserting expressions into Commentlines
2. Inserting into 'To' or 'Sub' field of mail action profiles. etc.
Also, it would be a great feature if we could create new variables or edit/modify existing ones using the same editor.
Thanks,
Arun |
|
Back to top |
|
|
|