|How to generate reuseable code? [message #17864]
||Mon, 09 May 2005 06:41
| wang xiao qing
Registered: July 2009
so far,we have to record a test and then generate the java script for |
runing the test,that is to say,there is no way to create the java script
without recording a test.
What I want to know is that can we gather the general logic operations of
a special session,such as logon,addItemToshoppingCart,and generate a java
class include there logic without hard code.So we can create the needed test
script using the java objects we created before.
For example,before we create a scenario,we have develop some tasks such as
so the scenario can be writed like this:
public class scenario
Logon logon=new Logon(...);
AddItem addItem=new AddItem(...);
LogOff logoff=new LogOff(....);
I want to know this is a viable way to achieve my idea.
Powered by FUDForum
. Page generated in 0.02264 seconds