DataService Entity added as test data source returns null in Test Automation

In Test Automation when a test case is created with datasource for test data as data service entity,the entity gets added but it reurns null while running the test case .
It is not fetching the test data from the entity at runtime and throws object reference error as it is null.
Any help on this issue.

image

image

Thanks,
gRao

@gRao

Looks like you created or modified the argument…The argument gets auto created when you link the service and it should remain same

cheers

Hi @Anil_G ,

I didn’t create or modify the argument .It got generated when I attached the entity as test data.
However, after facing this issue I closed the studio and then ran it from the test explorer, and it worked successfully without any errors.Whereas if we run the same thing from the Design/Debug Ribbon it fails and throws same error.

image

Updating and closing the issue with the workaround,hope this helps someone facing similar issue.
Thanks ,
gRao

1 Like

@gRao

Glad you resolved. FYI

cheers

@Anil_G …Yes thats the catch in the documentation, however it would be good if this could be run from both places

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.