Can I use elements generated in Mainframe directly in Test Server in Windows ...???
Unfortunately no. You'll need to bring the code down and compile it with Enterprise Developer in order to use Test Server to execute it. There should be no code changes required to make this happen