Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » How to generate reuseable code?
How to generate reuseable code? [message #17864] Mon, 09 May 2005 06:41
wang xiao qing is currently offline wang xiao qing
Messages: 8
Registered: July 2009
Junior Member
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
Logon.class,AddItem.class,Logoff.class.
so the scenario can be writed like this:
public class scenario
{
Logon logon=new Logon(...);
AddItem addItem=new AddItem(...);
LogOff logoff=new LogOff(....);
logon.execute();
addItem.execute();
logoff.execute();
}
I want to know this is a viable way to achieve my idea.
Previous Topic:Can' open ExecutionStatistic view 3.2A
Next Topic:NOEXEC error libpiAgent.so for tomcat 5.0 in AIX 5.1 64bit.
Goto Forum:
  


Current Time: Wed Oct 22 22:00:53 GMT 2014

Powered by FUDForum. Page generated in 0.02264 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software