<?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>How to compare the text field in UI  in Appian FitNesse scripts?</title><link>https://community.appian.com/discussions/f/general/14630/how-to-compare-the-text-field-in-ui-in-appian-fitnesse-scripts</link><description>My testcase in wiki page is failing because the text field compared from UI screen and test value are different in Appian FitNesse scripts 
 |verify field |Due Date |in section|Information|contains|Apr,2019 | 
 
 PFB the execution log for reference. </description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to compare the text field in UI  in Appian FitNesse scripts?</title><link>https://community.appian.com/thread/79014?ContentTypeID=1</link><pubDate>Wed, 20 Jan 2021 09:08:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:10cedd25-56b5-4016-84b2-e0fa469da438</guid><dc:creator>Vincent Wang</dc:creator><description>&lt;p&gt;Hello Priyanka,&lt;/p&gt;
&lt;p&gt;Sorry about the late reply, but hopefully this can be helpful for future references.&lt;/p&gt;
&lt;p&gt;You can use this fixture method:&lt;/p&gt;
&lt;pre&gt;|verify field|FIELD_LABEL or [FIELD_INDEX] or FIELD_LABEL[INDEX]|contains value|VALUE|&lt;br /&gt;&lt;br /&gt;to verify a field contains a value that has a comma.&lt;br /&gt;&lt;br /&gt;In your example, it would be&lt;br /&gt;&lt;br /&gt;&lt;span&gt;|verify field&amp;nbsp; &amp;nbsp;|Due Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|in section|Information|contains value|Apr,2019&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Note that we also have a similar method for populate a field with a value that contains a comma, &lt;/pre&gt;
&lt;pre&gt;|populate field|FIELD_LABEL or [INDEX] or FIELD_LABEL[INDEX]|with value|VALUE|&lt;br /&gt;&lt;br /&gt;These methods are all documented in the cheatsheet as well. &lt;br /&gt;&lt;br /&gt;Thank you for using FitNesse for Appian. &lt;/pre&gt;
&lt;pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to compare the text field in UI  in Appian FitNesse scripts?</title><link>https://community.appian.com/thread/65621?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2019 06:19:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f50d436e-47fb-45f6-8991-70068e0fa546</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Jose,&lt;/p&gt;
&lt;p&gt;I have defined the variable in variables file like below,&lt;/p&gt;
&lt;p&gt;!define DueDate {Apr, 2019}&lt;/p&gt;
&lt;p&gt;The due date&amp;nbsp; is a text field .I am using the variable like shown below in the wiki page.&lt;/p&gt;
&lt;p&gt;|verify field&amp;nbsp;&amp;nbsp; |Due Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |in section| Information|contains|${DueDate }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;/p&gt;
&lt;p&gt;Still , it takes the text before comma , PFB the execution log :&lt;/p&gt;
&lt;pre style="background-color:#f5f5f5;border:1px solid #cccccc;border-radius:4px;color:#333333;display:block;font-family:Menlo, Monaco, Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:13px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1.4285;margin:0px 0px 10px;overflow:auto;padding:9.5px;text-indent:0px;text-transform:none;"&gt;2019-04-04 11:41:19,864 [main] DEBUG com.appiancorp.ps.automatedtest.tempo.interfaces.TempoReadOnlyField  - READ ONLY FIELD COMPARISON : Field value [Apr, 2019] compared to Test value [Apr]
2019-04-04 11:41:19,864 [main] DEBUG com.appiancorp.ps.automatedtest.common.AppianObject  - STRING COMPARISON: Field value [Apr, 2019] compared to Test value [Apr]&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Priyanka&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to compare the text field in UI  in Appian FitNesse scripts?</title><link>https://community.appian.com/thread/65620?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2019 05:56:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ad90201c-dff1-4471-b5ab-e568c56aed43</guid><dc:creator>josep</dc:creator><description>&lt;p&gt;Hello Priyankav,&lt;/p&gt;
&lt;p&gt;try to define a variable (Using DEFINE at the top) with a value like this &amp;quot;{Apr, 2019}&amp;quot; and then use the variable ${variable}&lt;/p&gt;
&lt;p&gt;it seems like it is taking the comma as a separator of multiple values.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Jose&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>