Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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 qingFriend
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: Fri Mar 29 04:33:56 GMT 2024

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

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

Back to the top