Switch back and forth between application A and B on RHEL 6

I have a script that needs to test two related applications A, and B on a RHEL 6 SUT.

I need to do some setups in application A, and then I need to verify that the setups were successful by checking some data in application B.

What is the best way to switch back and forth between application A and B using Eggplant?