User Activity

I trying to build an ATF test case for a service request, it needs to pick approver and fulfiller dynamically. and approve and close tasks. I have tried multiple ways but was not successful at it . 
Helpfuls given to