|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
SUT stands for System/Software Under Test. Usually in your testing lab you will have more then one setup and you would like your test to run on all the setups without making any change to it. Let’s say you are testing a web application, in your lab you have few application servers with deferent URLs, if you hard coded the URL to the test it will be able to run only on one of your application servers. To solve this problem we ask you to define your System/Setup using an XML file.
Method Summary | |
List |
getAllValues(String path)
Get a list of all the values found. |
byte[] |
getSutXml()
return the sut xml. |
String |
getValue(String path)
Get a value from the XML file. |
void |
setSutXml(byte[] sutXml)
Set the SUT file |
void |
setSutXml(File sutXml)
Set the SUT file. |
Method Detail |
public void setSutXml(File sutXml) throws Exception
sutXml
- The SUT file.
Exception
public void setSutXml(byte[] sutXml) throws Exception
sutXml
- The SUT file as a byte array.
Exception
public byte[] getSutXml()
public String getValue(String path) throws Exception
path
- XPath to the requested value.
Exception
public List getAllValues(String path) throws Exception
path
- XPath to the values.
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |