- My View
Have below two questions, wanted to know the possibility with script or UI Step.
1) I am looking for a way to validate the the Reference field values are coming correctly or not.
For Ex: In Incident Table I wanted to validate the values of the field "Caller" (This is an example. In real time scenario, the developer will apply a filter criteria before populating the values to this reference field and tester is responsible to validate the number of records and the values too).
2) Do we have a way to validate the drop down field values (the values could be hard-coded or coming from a table). In this example wanted to validate the "State" field values, with script or a UI Step.
As far as I understand, you are willing to test the values of fields getting populated correctly or not.
I would like to mention here that, these field values are governed as per the configuration and user can change that as per needs.
1. For reference fields:
Right click on field -> configure dictionary -> change the table name and query condition. Reference qualifier will follow these conditions and show the records.
2. For choice:
Right click -> configure choices and you can put the choices there.
If these config are correct, there should not be a further need to validate the data again. Please elaborate your question further, if this does not answers your query.
Hope this helps.
Thanks for the reply Himanshu.
Actually I am trying to automate the scenario with ATF. Would like to validate the reference field values / dropdown values using ATF. Do we have a way to do this?
Tried, but really not sure how to get that. Asked dev team and they are also not able to provide any assistance
Here's an example of testing a script include which I assume you are using on some of your reference fields:
I tried on my side, but ran into a obstacle when trying to call a function that is within the script include. Looking at the example more I'll try again and let you know if I make any progress.
For a choice list you can probably have several steps that update the record state to the various options and then you validate the field value after each time you update it.
We only can run server side script, but I obviously want to validate the values from the client side right? I probably can validate the values from the Reference table, but I never be sure about them loading in the UI correctly or not