Open matheusgr opened 6 years ago
Maybe implemment a createObject command
Implement the createObject command, which instantiates an object from a class in the code being tested.
This command should be used with discretion if the client is a non-technical person, or tests might become too confusing for him.
Possible syntax customer1=createobject class=project.Customer name="John Doe" customerPays customer=${customer1} value=1000
Make using beans easy in easyaccept (as parameters, return values, script variables, etc.) In other words, there are advantages to having a façade deal with beans and not only native data since many modelues such as JSP, etc. can interface to a facade easier by dealing with beans This should be available as return values, parameters, script variables, ...
Possible syntax expect "John Doe" getStudent.name id=${id1} student=getStudent id=${id1} expect "John Doe" ${student}.name