How to test incident category and subcategory dropdowns - using parametrized testing - ATF

saha23456
Tera Contributor

I was tried as below.

A.I have defined two parameters: 

1.category

2.Subcategory

B. Test Run data set as 

1.category = Inquiry / Help
2.subcategory = Email

saha23456_0-1738826089712.png

saha23456_1-1738826119423.png

After Run i'm getting below Error messages.

saha23456_2-1738826274458.png

Can any one pls help me on this

 

 

2 REPLIES 2

Community Alums
Not applicable

Hi @saha23456 

Can you verify the your choise in your system expect this exact value, or should it be a predefined set. (e.g., Help or Inquiry separately)?

And aslo ensure theEmail is a valid subcategory under the category of Inquiry / Help.

polnilesh99_0-1738827361759.png

NayanP
Tera Contributor

Hi, 

 

You need to first set "Parameter Definitions" in your case 

1.category  Type = String

2.Subcategory  Type = String

 

Than, set the "Test run Data sets" in your case (below is the first set)

1.category = Inquiry / Help
2.subcategory = Email

 

After, add two(2) separate test step "set fiend values"

1)  Category = {{Parameters.category}}

2)  Subcategory   =  {{Parameters.Subcategory}}

 

Run Test

 

This will loop your test depend on how many test data sets you have.

 

If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.