<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: Is there a way to store and then use a variable froinside a map? (Thread)</title><description> Example.  I run a loop to create several users in my database and I get each new users ID assigned to a variable.   Contact_id1, Contact_id2, Contact_id3  Then in my test, in another map where I am running through my test cases, I want to use the IDs from above in that map.  Example.  Test 1, 2 and 3 uses contact_id1,  test 4 uses contact_id2, etc  right now, in the map I have to set a column with some name like ID (1, 2, 3) and then inside the main test loop that calls a function, I do an IF statement to see what user I want to use using that ID column and then set that to a new variable, and then use THAT variable in the function call.  IF map ID = 1 Var contactID = contact_id1 else if map ID = 2 var contactID = contact_id2 etc  Then the function calls the variable contactID instead of a map cell  I want to be able to skip that extra step and just call the map data from the function call like I do all other fields.  Is this a possibility?  could there be a way to store a variable inside a map? </description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/rapise/issues-questions/2982.aspx</link><item><guid isPermaLink="false">threadId=2982</guid><author>Anthony Damata (anthony.damata@mobileheartbeat.com)</author><category domain="http://www.inflectra.com/kronodesk/thread/tag">map</category><category domain="http://www.inflectra.com/kronodesk/thread/tag"> RVL</category><category domain="http://www.inflectra.com/kronodesk/thread/tag"> variables</category><title>Is there a way to store and then use a variable froinside a map?</title><description> Example.  I run a loop to create several users in my database and I get each new users ID assigned to a variable.   Contact_id1, Contact_id2, Contact_id3  Then in my test, in another map where I am running through my test cases, I want to use the IDs from above in that map.  Example.  Test 1, 2 and 3 uses contact_id1,  test 4 uses contact_id2, etc  right now, in the map I have to set a column with some name like ID (1, 2, 3) and then inside the main test loop that calls a function, I do an IF statement to see what user I want to use using that ID column and then set that to a new variable, and then use THAT variable in the function call.  IF map ID = 1 Var contactID = contact_id1 else if map ID = 2 var contactID = contact_id2 etc  Then the function calls the variable contactID instead of a map cell  I want to be able to skip that extra step and just call the map data from the function call like I do all other fields.  Is this a possibility?  could there be a way to store a variable inside a map? </description><pubDate>Tue, 29 Oct 2024 18:18:05 -0400</pubDate><a10:updated>2024-10-30T10:28:21-04:00</a10:updated><link>/Support/Forum/rapise/issues-questions/2982.aspx</link></item><item><guid isPermaLink="false">messageId=7017</guid><author>Max K (denis.markovtsev@inflectra.com)</author><title> Hi Anthony,  Could you please create a ticket and attach a sample test that illustrates the approac</title><description> Hi Anthony,  Could you please create a ticket and attach a sample test that illustrates the approach?  Regards, Max </description><pubDate>Wed, 30 Oct 2024 06:32:56 -0400</pubDate><a10:updated>2024-10-30T06:32:56-04:00</a10:updated><link>/Support/Forum/rapise/issues-questions/2982.aspx#reply7017</link></item><item><guid isPermaLink="false">messageId=7018</guid><author>Anthony Damata (anthony.damata@mobileheartbeat.com)</author><title> inflectra.max Hi Anthony,  Could you please create a ticket and attach a sample test that illustrat</title><description> inflectra.max Hi Anthony,  Could you please create a ticket and attach a sample test that illustrates the approach?  Regards, Max         I will do that, thank you    </description><pubDate>Wed, 30 Oct 2024 10:28:21 -0400</pubDate><a10:updated>2024-10-30T10:28:21-04:00</a10:updated><link>/Support/Forum/rapise/issues-questions/2982.aspx#reply7018</link></item></channel></rss>