question

dclaar avatar image
dclaar Suspended asked dclaar Suspended posted

Applicability failing?

Given this step:

call project://sp/lib/sp_get.fftc#sp_get SP1 "7 4 0 q q q"

 

And this applicability:

Apply map when conditions met box: checked Session types: Action: Call Target: Command: *sp_get*7 4 0* Compare: Wildcard

 

Post-Processing: Use the response map library configured for the session

 

Why don't I get a match? Does my call step need an explicit Session? No, if I do that, I get an error that "telnet doesn't support call".

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

·
AdamB avatar image
AdamB answered AdamB posted

Since call steps are "Exec" steps, there is no session associated with them, and hence no Response Map Library to find applicable maps in.

 

This is because we are encouraging users to set the "response map" property on the procedure call definition, so it will apply every time it is called.

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.

dclaar avatar image dclaar commented ·
That doesn't always work. For example, in this case, the output of the command varies drastically based on the command arguments. That's why I was hoping to match.
0 Likes 0 ·
KumarS avatar image KumarS dclaar commented ·
We have discussed this several times as a feature request e.g. how to associate a response map library for non-session steps. It seems like a good feature request.
0 Likes 0 ·
dclaar avatar image dclaar KumarS commented ·

It was actually possible in SVT by using a session name, even though the step didn't need one. So you could:

 

S1 open

S1 call

 

And use a response map associated with device S1.

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.