question

tsvika avatar image
tsvika asked tsvika posted

Is it possible to pass required Expected Response map dynamically?

From my experience so far, Expected Response map is set statically

 by selecting   a Response map file at “Step Properties->Other Post-processing->Expected Response”.

 

Sometimes it is useful to pass the required response dynamically (e.g.. To call a general procedure , that requires different response maps).

Is it possible in Itest ? How ?

BR Tsvika

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
The expected response map field should be field substitutable. Meaning that it can have its value dynamically assigned. Do you see a little grey box attached to the left of the text box? This controls the field substitutability of the field. if you click it, it will change from a grey box to a grey box with an "f" in it, the "f" means that field substitution is turned on. Once it is on, you can define a variable eval - set rm "project://foo/bar.ffrm" and then use it in the field with $rm Let me know if that helps or if you have other questions. -a
2 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.

YujieL avatar image YujieL commented ·

iTest also has support for response map library.  You specify the applicability data for one or more response maps and you put these response maps in a response map library project (meaning the project needs to have the response map library nature set. By default, iTest project does have it set already).   When your test case step is set to use response map library for the session,  the mapping engine will pick out the appropriate response maps based on the applicability data.  It will try to perform mapping using all response maps that match the applicability criteria and stop at the first one that succeeds.

0 Likes 0 ·
udaya avatar image udaya commented ·

Hi,

 

While creating a response map you can find a page "Response Map Applicability".In this page there are various options available to filter out the response map from the group of response maps.You can aslo select a response map by provinding a priority value.It is a dynamic property which helps in selecting a particular response map from a group.

 

I hope if you go through the page and various options there,it will help you more.

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.