juergen 2003/08/27 08:48:32
Modified:
testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor
TProcessors.java
Log:
set the user-agent header before issuing the webdav command.
Revision Changes Path
1.68 +11 -5
jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/TProcessors.java
Index: TProcessors.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/testsuite/testsuite/junit/src/org/apache/slide/testsuite/testtools/tprocessor/TProcessors.java,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -r1.67 -r1.68
--- TProcessors.java 21 Aug 2003 10:31:42 -0000 1.67
+++ TProcessors.java 27 Aug 2003 15:48:32 -0000 1.68
@@ -185,6 +185,10 @@
/** The absolute path name of the execute input file **/
private String globalAbsolutePath = null;
+
+ /** The absolute path name of the execute input file **/
+ private String globalTestFileName = null;
+
/**
* Constructor
*/
@@ -454,7 +458,7 @@
xmlresult.writeElement("fileName", testfile.getAbsolutePath());
try{
- globalAbsolutePath = testfile.getAbsolutePath();
+ globalTestFileName = testfile.getAbsolutePath();
globalAbsolutePath = testfile.getParent();
// globalAbsolutePath = testfile.;
result = exceuteStepOrRepeater(new
SAXBuilder(true).build(testfile).getRootElement().getChildren().iterator());
@@ -652,6 +656,8 @@
try {
method = executeRequest(elt.getChild("request"));
+ String fileName =
globalTestFileName.substring(globalAbsolutePath.length()+1);
+ method.setRequestHeader("User-Agent", "Jakarta Slide TProcessor " +
URLUtil.URLEncode(fileName,"UTF-8"));
} catch (Exception e) {
if (method != null) {
xmlresult.writeElement("method", method.getName());
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]