<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Automated Test Framework in Employee Slate and Employee Center forum</title>
    <link>https://www.servicenow.com/community/employee-slate-and-employee/automated-test-framework/m-p/2999753#M9632</link>
    <description>&lt;P&gt;&lt;SPAN&gt;When testing Change module via ATF (Automated Test Framework) in ServiceNow, filling mandatory fields like categories, subcategories, and target company is essential, but it is throwing error if I set any values for those and then submit .&lt;BR /&gt;errors:&amp;nbsp;FAILURE: Failed to set field 'u_target_company' to value '0a6b9f36ec5330009d44fc8b024ccc04' because the reference is NOT valid - for target company field&lt;BR /&gt;Invalid insert - as these are dependent fields , u_subcategory - for subactegory fields&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;help me to fill those and submit the form in ATF&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jul 2024 14:06:25 GMT</pubDate>
    <dc:creator>dwef</dc:creator>
    <dc:date>2024-07-25T14:06:25Z</dc:date>
    <item>
      <title>Automated Test Framework</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/automated-test-framework/m-p/2999753#M9632</link>
      <description>&lt;P&gt;&lt;SPAN&gt;When testing Change module via ATF (Automated Test Framework) in ServiceNow, filling mandatory fields like categories, subcategories, and target company is essential, but it is throwing error if I set any values for those and then submit .&lt;BR /&gt;errors:&amp;nbsp;FAILURE: Failed to set field 'u_target_company' to value '0a6b9f36ec5330009d44fc8b024ccc04' because the reference is NOT valid - for target company field&lt;BR /&gt;Invalid insert - as these are dependent fields , u_subcategory - for subactegory fields&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;help me to fill those and submit the form in ATF&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 14:06:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/automated-test-framework/m-p/2999753#M9632</guid>
      <dc:creator>dwef</dc:creator>
      <dc:date>2024-07-25T14:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Automated Test Framework</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/automated-test-framework/m-p/2999990#M9636</link>
      <description>&lt;P&gt;The error occurs because the fields are interdependent and reference data based on the values of other variables. To resolve this, try setting values in different steps. For Example, for the Category, SubCategory, and Target Company fields, create three separate test steps &lt;STRONG&gt;'Set Field Values'&lt;/STRONG&gt; and assign the interrelated values accordingly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Please mark my answer helpful if it helps you and accept it as a solution to assist the ServiceNow community.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 16:51:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/automated-test-framework/m-p/2999990#M9636</guid>
      <dc:creator>Ujjwal019</dc:creator>
      <dc:date>2024-07-25T16:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Automated Test Framework</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/automated-test-framework/m-p/3000346#M9644</link>
      <description>&lt;P&gt;Thanks much for your response.&lt;BR /&gt;But I am not able to resolve the issue , when I open the change form for category hardware , it is showing subcategory as hardware , but when I give the same while testing it is throwing error.&lt;BR /&gt;&lt;SPAN&gt;FAILURE: Unable to set field 'u_subcategory' to value 'Hardware'. Value 'Hardware' is not currently a valid choice&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;I tried with all subcategory choices it is not taking .&lt;BR /&gt;Kindly help me to pass this step .&lt;BR /&gt;Kind of urgent , so could you pls respond asap&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 04:14:58 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/automated-test-framework/m-p/3000346#M9644</guid>
      <dc:creator>dwef</dc:creator>
      <dc:date>2024-07-26T04:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Automated Test Framework</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/automated-test-framework/m-p/3000400#M9645</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/522335"&gt;@dwef&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please also check if the user is having access to that reference value of (&lt;SPAN&gt;u_target_company)&lt;/SPAN&gt; or not. Check the below KB for more details:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;A title="ATF test fails with &amp;quot;reference is NOT valid&amp;quot;" href="https://support.servicenow.com/kb?id=kb_article_view&amp;amp;sysparm_article=KB0695316#:~:text=Cause,the%20reference%20will%20be%20invalid." target="_blank" rel="noopener"&gt;ATF test fails with "reference is NOT valid"&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 05:26:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/automated-test-framework/m-p/3000400#M9645</guid>
      <dc:creator>SN_Learn</dc:creator>
      <dc:date>2024-07-26T05:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Automated Test Framework</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/automated-test-framework/m-p/3000416#M9646</link>
      <description>&lt;P&gt;Thanks for you time !!&lt;BR /&gt;But still it is not getting resolved .The user I created in ATF only and I chose company as cognizant for him and in that domain when I opened change I am able to see that subcategory hardware under category hardware but when I am choosing the same in atf set fields values&amp;nbsp; it is throwing error like this while test is running.&lt;BR /&gt;&lt;SPAN&gt;FAILURE: Unable to set field 'u_subcategory' to value 'Hardware'. Value 'Hardware' is not currently a valid choice&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 05:53:22 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/automated-test-framework/m-p/3000416#M9646</guid>
      <dc:creator>dwef</dc:creator>
      <dc:date>2024-07-26T05:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Automated Test Framework</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/automated-test-framework/m-p/3000530#M9647</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/522335"&gt;@dwef&lt;/a&gt;&amp;nbsp;, Can you please send the screenshot of the test step and the error your are getting.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 08:08:14 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/automated-test-framework/m-p/3000530#M9647</guid>
      <dc:creator>Ujjwal019</dc:creator>
      <dc:date>2024-07-26T08:08:14Z</dc:date>
    </item>
  </channel>
</rss>

