question

GregM avatar image
GregM asked ericnute edited

TL1 Prompts?

What affect does setting Terminal>Style to TL1?

 

- Response will be mapped according to TL1 standard?

- If Completion criteria is "Auto and Idle", are there prompts defined (Prompts>Include inherited values is checked by default)

- If Completion criteria is "TL1 End of Message", prompts are ignored?

--- is ";" sufficient to end a TL1 message or is ";\n" required?

iTestterminal
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

·
KumarS avatar image
KumarS answered KumarS posted

When you set the style to TL1 OR set the step's completion rule to TL1_EOM, iTest will immediately start enforcing TL1 completion rules on the steps with this style. The completion rules for this style behave as follows:

 

1.  Check if the response contains a valid TL1 message and the channel has been idle.

2. If answer to #1 is yes, check if there are any prompts defined for this step

      2a) if there are prompts defined for this step (for the session and the step) and there is a prompt match - consider the step to be complete

      2b) if there are no prompts defined for this step  (for the session and the step) - consider the step to be complete

3. If the answer to #1 is no, and the user has set the completion criteria to TL1_EOM, then we consider that step is not complete (because it does not have a valid TL1 message yet)

 

So in order to correctly set the properties for a TL1 session, you should do the following:

1. Set the style to TL1 in the base session profile.

2. Set the completion rule to TL1_EOM in the base session profile.

3. For any step where the response is TL1 + some prompt e.g.

COMPLD 0 M rest of tl1 message

;

myrouter>

This is not a valid TL1 message because of the prompt- but many TL1 DUTs have these because they want some sort of interactive session. But we deal with this properly by letting the user set TL1_EOM as completion rule and define additional prompts so that we wait for the prompt.

 

Also many devices have non-TL1 login sequences before they get into a complete TL1 shell. In these cases, we tell the users to simply override style and completion rules on these steps to be the normal CLI rules (e.g. auto and idle and normal style) and then continue on with TL1 style and TL1_EOM completion rule.

 

 

 


 

 

10 |950

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

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.