question

hemanamani avatar image
hemanamani asked Philip.Joung edited

how to update a response map when a new field is added to test data CSV file

I have test data file with several columns. I had to add a new field so added a new column. but when i run readFile step, I see that this newly added field is not getting added to the responsemap's query.. How to update responsemap with this new column?
iTestresponse map
1 comment
10 |950

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

vijaykumar avatar image vijaykumar commented ·
If it is possible please provide the csv file.
0 Likes 0 ·
vijaykumar avatar image
vijaykumar answered
No need to add a new column. Just go to Response map-> Table Maps-> Table-> Columns (scroll down) and enable the check box "Use the last column as a template for additional identical columns" as shown below: ![alt text][1] [1]: /storage/temp/3687-last_column.png

last_column.png (18.7 KiB)
10 |950

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

hemanamani avatar image
hemanamani answered
Thanks for the reply.. on selecting Response map-> Table Maps-> Table-> Columns I see an option 'Add column'. When it is clicked a new column is added to the last column of query table. but I didn't see an option to edit this column.. Any idea about this ..?
10 |950

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

sai_kiran avatar image
sai_kiran answered
I hope you are using table mapping to generate queries. In iTest, once the structure is generated we could not change the format in the response map. If we want to add a new column, we need to generate new response map. In this case the response maps automatically generates queries for the new row but not for the new column. There is another option for this, where we can add addition values to the response map but it gets added to the last column only instead of creating new column. To get this, please go to Response map-> Table Maps-> Table-> Columns and at the bottom check the option "Use the last column as a template for additional identical columns".
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.