question

palemerald avatar image
palemerald asked palemerald posted

New to Block RM. How to MAP an Interface Name Directly.

Hi experts,

 

I tried using the Block Mapping to MAP the interface names directly (show interfaces Null0 output). Looks like there are some in-built parsers that are being invoked and hence if I select the interface "Null0" token as Variable, I am unable to create set a Name to the Token. The Value, Parser and Token Name has the value (multiple) on it.

 

I tried out an option to come up with the Custom Parsers and giving the Priority as -1 and still its not selecting the custome parser as the Parser type.

 

Can some one please help me with this.

 

palemerald

iTestresponse map
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Kashiwabara avatar image
Kashiwabara answered Kashiwabara posted

Just trying to help. You could use a wildcard star to represent any parser combination. Actually you were meeting a Word and a Number parser without any space. Attached picture is an example for you. Hope it would help a little.

Block RM.JPG

 


Block RM.JPG (102.3 KiB)
3 comments
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

palemerald avatar image palemerald commented ·
Great. Thanks a Ton for your prompt response.
0 Likes 0 ·
KumarS avatar image KumarS palemerald commented ·
In iTest 3.4, after you add a custom parser, there is a "reparse" blocks toolbar button in the block map to reparse the blocks with new set of parsers. In earlier versions of iTest, one had to re-add the block texts for the custom parsers to take effect.
0 Likes 0 ·
PatrickH avatar image PatrickH KumarS commented ·

In general, if you are having problems matching part of a response that might change between different types of tokens, ie. sometimes it is a number, sometimes a word, sometimes an IP address, etc. your choices are to:

 

 

  1. Use a wildcard token instead
  2. Create a custom parser. - In this case it is important to use the Reparse Blocks button otherwise the block map will not be correct.
It is generally preferable not to use wildcard tokens due to performance and potential for confusion. However if your response is pretty simple then that is the fastest way to get it to work. 

 

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.