How to validate the problem priority field value is same the incident priority field via ATF?

Akankasha Gupta
Tera Contributor

I want to test that the problem priority field value is same as the priority field of the incident from which the problem is created using ATF.

 

Please help me.

3 REPLIES 3

Shaqeel
Mega Sage

Hi @Akankasha Gupta 

 

You can only achieve it by setting the problem priority first and then validating it on incident.

Use record query and add filter such as priority etc.

And then validate the fields on incident.

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

*************************************************************************************************************

 

 

Regards

Shaqeel


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

***********************************************************************************************************************





Regards

Shaqeel

Record Query isn't working . I have priority fields values in both problem and incident forms.

Can you write the ATF steps here to validate that problem priority field matches with the incident priority field?

BeateN
Giga Guru

Hi, 

I had a similar requirement.

There is an operator "is same" for field validiations - but this is not exactly what was needed for me.

As I didn't find any OOT steps that are comparing field values in different objects I created a custom step configuration:

  • Inputs: Table, Record ID, Field Name
  • Script: Getting the value of the field from the record in the table
  • Output: Value of the field


The steps of my test became pretty easy with that:
1. Create Incident

2. Get Incidents Priority Value (output of my custom step)

3. Create Problem from Incident

4. Validate whether Problems priority is the same as the output of my step 2.

 

Hope this helps.

Beate