<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Using JMeter to create a payload to include dynamically generated web element ID&amp;#39;s</title><link>https://community.appian.com/discussions/f/general/13346/using-jmeter-to-create-a-payload-to-include-dynamically-generated-web-element-id-s</link><description>Hi, 
 
 I am trying to write a performance test for an Appian application with JMeter. I am not using Appian version of JMeter but instead the open-source version. 
 I need to test a flow where clicking a button makes a POST request to a particular end</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Using JMeter to create a payload to include dynamically generated web element ID's</title><link>https://community.appian.com/thread/89087?ContentTypeID=1</link><pubDate>Wed, 15 Dec 2021 07:15:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:479b22f9-e213-455a-82ad-dd420365a212</guid><dc:creator>krishn0001</dc:creator><description>&lt;p&gt;Hi Sagar&lt;/p&gt;
&lt;p&gt;I am passing correct context and saveinto values but I am getting incorrect response and due to this further tests failing, this issue happen randomly , some times I am getting correct response and some times not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using JMeter to create a payload to include dynamically generated web element ID's</title><link>https://community.appian.com/thread/81006?ContentTypeID=1</link><pubDate>Mon, 19 Apr 2021 16:34:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fd632e8d-426b-4b82-8374-58ffc20a2950</guid><dc:creator>akshays0004</dc:creator><description>&lt;p&gt;Hi Ravi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Were you able to resolve this? Can you help?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using JMeter to create a payload to include dynamically generated web element ID's</title><link>https://community.appian.com/thread/75191?ContentTypeID=1</link><pubDate>Sat, 04 Jul 2020 09:37:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2059e4db-9f83-4982-96ad-9c9c26e02625</guid><dc:creator>pavank0006</dc:creator><description>&lt;div style="display:none;"&gt;&lt;/div&gt;
&lt;p&gt;Hi Ravi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Did you resolved the&amp;nbsp; &amp;nbsp;issue which you mentioned on above thread, i&amp;#39;m also facing same issue , pls let me know the solution for same.&lt;/p&gt;
&lt;p&gt;TIA,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using JMeter to create a payload to include dynamically generated web element ID's</title><link>https://community.appian.com/thread/60489?ContentTypeID=1</link><pubDate>Thu, 20 Sep 2018 09:48:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ec2ec0cd-4bcc-4a6a-b73c-1219b645e373</guid><dc:creator>raviy</dc:creator><description>Thanks Sagar,&lt;br /&gt;
&lt;br /&gt;
You have been really helpful. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Could you please help me once more. I am trying to run a test in JMeter now able to login and logout(with the help of the hints provided above by you - thanks) but when I try to trigger a POST request my test fails at that request.&lt;br /&gt;
&lt;br /&gt;
So logging in and logging out are both GET request and it passes. But I am trying to perform an action to navigate to a different page bu POSTING some payload to an end-point and this step is failing in Jmeter. I have tried everything and compared my manual request and Jmeter request they look exactly the same.&lt;br /&gt;
&lt;br /&gt;
I do not know what is wrong. I am running out of options and I need help. Could you please look into this.&lt;br /&gt;
&lt;br /&gt;
PS: If you want I can give you the JMX file to better analyse the issue(just email me your personal email address @ravi.yadav@lands.wa.gov.au) &lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using JMeter to create a payload to include dynamically generated web element ID's</title><link>https://community.appian.com/thread/60450?ContentTypeID=1</link><pubDate>Wed, 19 Sep 2018 08:16:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b42d4387-bdc6-4e48-a569-0f61b068788d</guid><dc:creator>sagarl511</dc:creator><description>Please try this link - &lt;a href="https://docs.appian.com/suite/help/18.3/SAIL_Performance.html"&gt;docs.appian.com/.../SAIL_Performance.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using JMeter to create a payload to include dynamically generated web element ID's</title><link>https://community.appian.com/thread/60442?ContentTypeID=1</link><pubDate>Wed, 19 Sep 2018 01:39:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:65788187-9d53-4c52-a970-bf88302dafef</guid><dc:creator>raviy</dc:creator><description>Thanks for the reply Sagar but the link your provided does not work - docs.appian.com/.../SAIL_Performance.html&lt;br /&gt;
&lt;br /&gt;
And I will look into the suggested solution and post my results here soon.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using JMeter to create a payload to include dynamically generated web element ID's</title><link>https://community.appian.com/thread/60404?ContentTypeID=1</link><pubDate>Tue, 18 Sep 2018 11:26:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:23b6ba51-ed41-4df9-be77-5472464af8ff</guid><dc:creator>sagarl511</dc:creator><description>Ravi,&lt;br /&gt;
&lt;br /&gt;
You might need to understand on how SAIL evaluation works and below link will help you in doing that - &lt;a href="https://docs.appian.com/suite/help/18.3/SAIL_Performance.html."&gt;docs.appian.com/.../SAIL_Performance.html.&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Once you record using Jmeter ,  you will find two components in encoded formats in  most of the requests - &lt;br /&gt;
&lt;br /&gt;
1) Context - To get context you have to add JSON path extractor as part of the response of request&lt;br /&gt;
&lt;br /&gt;
JSON path for context - $.context&lt;br /&gt;
&lt;br /&gt;
2) SaveInto - To get saveInto - you must know which component saveinto was evaluated in that request and then using JSON path you can get that from previous response.&lt;br /&gt;
&lt;br /&gt;
JSON path - $..primaryButtons[?(@.label==Next)].saveInto[0]&lt;br /&gt;
&lt;br /&gt;
Once you have those two parameters - pass it to further request - &lt;br /&gt;
&lt;br /&gt;
E.g. - {&amp;quot;context&amp;quot;:${CONTEXT}, &amp;quot;updates&amp;quot;:{&amp;quot;#v&amp;quot;:[{&amp;quot;saveInto&amp;quot;:[&amp;quot;${SAVE_INTO}&amp;quot;], &amp;quot;value&amp;quot;:{&amp;quot;#v&amp;quot;:1, &amp;quot;#t&amp;quot;:&amp;quot;int&amp;quot;}}], &amp;quot;#t&amp;quot;:&amp;quot;SaveRequest?list&amp;quot;}, &amp;quot;uuid&amp;quot;:&amp;quot;2a53f523-7457-4788-a798-748a73c98bbc&amp;quot;, &amp;quot;#t&amp;quot;:&amp;quot;UiConfig&amp;quot;}&lt;br /&gt;
&lt;br /&gt;
More links - &lt;br /&gt;
&lt;a href="https://community.appian.com/discussions/f/general/4840/performance-testing-with-jmeter/52854#52854"&gt;community.appian.com/.../52854&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>