<?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>topic Re: Can I test Playbooks with CLI? in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/can-i-test-playbooks-with-cli/m-p/580009#M3140</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/299305"&gt;@SergioPalacios&lt;/a&gt;&amp;nbsp;– The number of tasks in a playbook does contribute to the amount of time it takes for the playbook to load in the UI. So breaking your playbook into smaller subplaybooks is a good practice, especially if the playbook is large (30+ tasks).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The work plan size does vary by incident, because it is not just the size of the playbook itself, but also the inputs, outputs, war room entries, etc. that are specific to each incident. If you are on XSOAR 6, you can view incidents with large work plans from the System Diagnostics page. You can also run the&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;getInvPlaybookMetaData&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;command on these incidents to see which specific tasks are making the work plan so large.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2024 23:02:43 GMT</pubDate>
    <dc:creator>asawyer</dc:creator>
    <dc:date>2024-03-11T23:02:43Z</dc:date>
    <item>
      <title>Can I test Playbooks with CLI?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/can-i-test-playbooks-with-cli/m-p/578152#M3093</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I'd like to know if it's possible to test Playbooks via the command line interface or something similar. Currently, I always use the GUI for testing purposes, loading an incident from the debugger panel and just clicking to run. However, sometimes, the GUI is too slow, especially when the playbook has a lot of "boxes" to render. Generally, it doesn't depend on how difficult the boxes are to run; it seems that having many boxes to render in the same playbook or sub-playbook severely affects performance, increasing the browser's RAM usage too (it doesn't matter which browser, as all yield the same results: Mozilla, Chrome, Edge, Opera...).&lt;/P&gt;
&lt;P&gt;So, I think testing playbooks with the debugger panel using something like CLI or API would be nice. Is it possible?&lt;/P&gt;
&lt;P&gt;Thank you all.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 08:57:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/can-i-test-playbooks-with-cli/m-p/578152#M3093</guid>
      <dc:creator>SergioPalacios</dc:creator>
      <dc:date>2024-02-23T08:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can I test Playbooks with CLI?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/can-i-test-playbooks-with-cli/m-p/578234#M3096</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/299305"&gt;@SergioPalacios&lt;/a&gt;&amp;nbsp;– I don't think it is possible to do exactly what you're looking for, but I have a few suggestions that may help.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;It is possible to trigger a playbook automatically, which may help with your testing, because then you can kick off the playbook automatically and return to it later to review, once the tasks are done running. The command to do this is &lt;STRONG&gt;!setPlaybook&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;You can also run the playbook in the Playground Work Plan to test, rather than using the debugger. Sometimes I find this is faster than the debugger.&lt;/LI&gt;
&lt;LI&gt;For the construction of the playbook itself, using subplaybooks so that there are less tasks in the top-level playbook to render can help speed up the page loading time.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know what you think!&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2024 00:21:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/can-i-test-playbooks-with-cli/m-p/578234#M3096</guid>
      <dc:creator>asawyer</dc:creator>
      <dc:date>2024-02-24T00:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can I test Playbooks with CLI?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/can-i-test-playbooks-with-cli/m-p/578243#M3097</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/195689"&gt;@asawyer&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot for reply! I'll test all of your suggestions and I'll let you know if it works! &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible that the "delay" meanwhile executing all the task in a playbook is due to a big work plan? My playbook has a lot of "boxes"/task and subplaybooks in a same main playbook. So, do u think that split all the playbooks in a different individuals playbooks called each one with !setPlaybook would be work better than only one?&amp;nbsp;&lt;BR /&gt;I mean, Palo Alto says that work plans bigger than 3MB can overload XSOAR and makes the playbook run slower than normaly. But i dont really know if the work plan size is related to an incident or its just indepent in each playbook.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2024 12:33:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/can-i-test-playbooks-with-cli/m-p/578243#M3097</guid>
      <dc:creator>SergioPalacios</dc:creator>
      <dc:date>2024-02-24T12:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can I test Playbooks with CLI?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/can-i-test-playbooks-with-cli/m-p/580009#M3140</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/299305"&gt;@SergioPalacios&lt;/a&gt;&amp;nbsp;– The number of tasks in a playbook does contribute to the amount of time it takes for the playbook to load in the UI. So breaking your playbook into smaller subplaybooks is a good practice, especially if the playbook is large (30+ tasks).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The work plan size does vary by incident, because it is not just the size of the playbook itself, but also the inputs, outputs, war room entries, etc. that are specific to each incident. If you are on XSOAR 6, you can view incidents with large work plans from the System Diagnostics page. You can also run the&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;getInvPlaybookMetaData&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;command on these incidents to see which specific tasks are making the work plan so large.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 23:02:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/can-i-test-playbooks-with-cli/m-p/580009#M3140</guid>
      <dc:creator>asawyer</dc:creator>
      <dc:date>2024-03-11T23:02:43Z</dc:date>
    </item>
  </channel>
</rss>

