Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How to create test cases , test steps and test set in test management 2.0 using Gen AI

ajay98
Tera Contributor

As a developer how to create test cases , steps and test set in Test Management 2.0 using Gen AI ( without manual intervention )

 

Step 1  : 

     - find the all required tables 

    - for test case creation we need Test Version(sn_test_management_test_version) table

    - for test steps creation we need Steps (sn_test_management_step) table

    - for test set creation we need Test Set (sn_test_management_test_set) table

Step2 :

       - create a flow in flow designer 

      - trigger form Agile Story or according to your requirement

  Step 2 : 

         - Create three Gen AI action inside flow 

         1 Summarize :

                    select your field 

          2 Generate Content 

                      take summarize response as a input and generate test cases and steps

           3 Generic prompt :

                     -  take generate content response as a input 

                     - provide a json formate for test cases and steps (we use json formate because everytime response has changed ,So  without a proper formate we can't save response test cases and steps )

 

Step4 :

       -  create a custom action for scripting (using script we can save the response test cases and steps)

       - Add custom action in flow

 

 

Note(IMP)* :

       -- First of fall try to find mapped between tables 

       -- Every child tables refer to parent table with a reference column 

       --  try to find and put parent table sys_id

        

1 REPLY 1

nalu0415
Mega Contributor

Hi Ajay, I have to provide a demo to my organization that we can use Servicenow to upload test cases and test steps. Can you please help me in providing a url to upload test cases? I am unable to figure it out.