we are trying to get an insight for implementing AUT in our Application.
For Data page for the Data Source as Activity(This activity sets property in the PYworkpage after receiving the response from external system)
however while creating Assertion type for Data page we understood that the user should hardcode the expected values as assertion types.
however this will be different for everytype of workobject we would create since they will receive variable responses as per their types. and we would need to create new testcase each time.
also since the activity is a data source hence untill the data is not present in the pyworkpage the testcase fails, we have to create a new activity with a set of hardcoded values to be set on the pyworkpage and then the testcase works.
that means our scenario doesnt qualify for UNIT TEST.
Please correct my understanding and provide your suggestion for better workarounds for UNIT TEST IMPLMENATATION.
What is the validation you are trying to do in this case? Is it that, based on the response received from external system, the source activity creates a different object and sets a property on pyworkpage and you want to validate that property?
If so, then for each type of external response, there should be one test case created by setting that response in clipboard using a DT or Activity, so that the activity (DP source) can pick that response from clipboard and proceed. Expected output accepts hard-coded values as well as property reference.