ATF-Custom steps

Reena Kumari2
Tera Contributor

Hi Team,

 

My requirement is to create custom steps, that can be used for all ATF.

Like , Create a company, account and partner.

 

Thanks,

reena

4 REPLIES 4

Laszlo Balla
ServiceNow Employee
ServiceNow Employee

I think what you need is Test Templates. The creation of records like company, account, partner, etc, would be a series of steps inside those templates. Have look here for the documentation.

You can then apply the templates to multiple test cases.

Hi Laszlo,

 

Thanks for your reply, but in the instance only one Test Template is there, nothing related to my requirement.

 

Can you help me out of this?

 

Thanks,

Reena Kumari

Damini Sheth
Tera Contributor

Hi Reena,

You can create custom steps by following below points :

  1. Navigate to Automated Test Framework > Administration > Step Configurations.
  2. Click New, The system displays the Test Step Config form.
  3. In the Name field, enter a name for your step type.
  4. Leave the Step environment set to Server-Independent
  5. In the Order field, enter an integer specifying where steps with this configuration appear 
  6. In the Template reminder field, enter the instructions you want to appear when this step is included in a test as part of a template
  7. In the HTML description field, enter the text you want to appear when the cursor highlights this step
  8. In the Description generation script field, add code to the provided template to generate the description assigned to a Test Step record 
  9. In the Step Execution Script field, add code to the provided template to define the script that executes when a step of this type runs
  10. Click Submit

Thanks,

Damini Sheth

 

Hi Damini,

 

My requirement is to create a company for customer. Table to be queried is customer_account.

Variables will be Company name, Company ID and customer variable will be of checkbox.

I did like this.

ReenaKumari2_0-1680595215145.pngReenaKumari2_1-1680595244905.png

But it's failing .

Please help me out.

Thanks,

Reena