Skip to Content.
Sympa Menu

perfsonar-dev - r2052 - in trunk/functional-testing/sqlma/l2: MeasurmentArchiveStoreRequest SetupDataRequest

Subject: perfsonar development work

List archive

r2052 - in trunk/functional-testing/sqlma/l2: MeasurmentArchiveStoreRequest SetupDataRequest


Chronological Thread 
  • From:
  • To:
  • Subject: r2052 - in trunk/functional-testing/sqlma/l2: MeasurmentArchiveStoreRequest SetupDataRequest
  • Date: Mon, 12 Feb 2007 04:14:58 -0500

Author: michalis
Date: 2007-02-12 04:14:57 -0500 (Mon, 12 Feb 2007)
New Revision: 2052

Added:

trunk/functional-testing/sqlma/l2/MeasurmentArchiveStoreRequest/MeasurementArchiveStoreRequests.java

trunk/functional-testing/sqlma/l2/SetupDataRequest/SetupDataResponseParser.java
Modified:

trunk/functional-testing/sqlma/l2/SetupDataRequest/SetupDataKeyRequests.java

trunk/functional-testing/sqlma/l2/SetupDataRequest/SetupDataKeyResponseParser.java
trunk/functional-testing/sqlma/l2/SetupDataRequest/SetupDataRequests.java
Log:


Added:
trunk/functional-testing/sqlma/l2/MeasurmentArchiveStoreRequest/MeasurementArchiveStoreRequests.java


Property changes on:
trunk/functional-testing/sqlma/l2/MeasurmentArchiveStoreRequest/MeasurementArchiveStoreRequests.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native

Modified:
trunk/functional-testing/sqlma/l2/SetupDataRequest/SetupDataKeyRequests.java
===================================================================
---
trunk/functional-testing/sqlma/l2/SetupDataRequest/SetupDataKeyRequests.java
2007-02-09 18:15:00 UTC (rev 2051)
+++
trunk/functional-testing/sqlma/l2/SetupDataRequest/SetupDataKeyRequests.java
2007-02-12 09:14:57 UTC (rev 2052)
@@ -110,6 +110,7 @@
doc.getRootElement().addContent(
utilities.createData("data1",
"meta2"));

+
break;

// a request where the nodes of the of the link are
provided with
@@ -2085,7 +2086,7 @@

if (args.length > 0) {

- System.out.println("Creating SetupData with key
requests....");
+ System.out.println("Creating SetupData without key
requests....");
SetupDataKeyRequests creator = new
SetupDataKeyRequests();
boolean f = (new File(args[0])).mkdir();
int i;
@@ -2122,7 +2123,7 @@

}
System.out
- .println("MetadataKey requests have
been created and stored at "
+ .println("SetupDataKey requests have
been created and stored at "
+ args[0] + "!");
} else {
System.out.println("Wrong input. Needed parameter
is:");

Modified:
trunk/functional-testing/sqlma/l2/SetupDataRequest/SetupDataKeyResponseParser.java
===================================================================
---
trunk/functional-testing/sqlma/l2/SetupDataRequest/SetupDataKeyResponseParser.java
2007-02-09 18:15:00 UTC (rev 2051)
+++
trunk/functional-testing/sqlma/l2/SetupDataRequest/SetupDataKeyResponseParser.java
2007-02-12 09:14:57 UTC (rev 2052)
@@ -29,7 +29,7 @@
import sqlma.common.SQLMAFunctionalTestsUtilities;

/**
- * Class for validating and parsing setup data with key request responses.
The
+ * Class for validating and parsing setup data without key request
responses. The
* responses are first validated and then checked against expected values
*
* @author Michalis Michael
@@ -281,7 +281,8 @@
"Something went wrong when quering the
database.\n",
"No results found in response.\n",
"A problem encountered while fetching results
from database or response .\n",
- "Test case outside range\n", "Wrong result
code\n",
+ "Test case outside range\n",
+ "Wrong result code\n",
"EventType element not present\n",
"Metadata id not equeal to resultCode
Metadata\n",
"Metadata id attribute doesn't exist.\n" };
@@ -507,7 +508,7 @@
result = false;
}
} else {
- if (resResults == null) {
+ if (queryResults == null) {
parserLogWrite(true, 1);
result = true;
} else {
@@ -697,7 +698,7 @@
result = false;
}
} else {
- if (resResults == null) {
+ if (queryResults == null) {
parserLogWrite(true, 1);
result = true;
} else {
@@ -1538,7 +1539,7 @@
result = false;
}
} else {
- if (resResults == null) {
+ if (queryResults == null) {
parserLogWrite(true,
1);
result = true;
} else {
@@ -1613,7 +1614,7 @@
result = false;
}
} else {
- if (resResults == null) {
+ if (queryResults == null) {
parserLogWrite(true,
1);
result = true;
} else {
@@ -1709,7 +1710,7 @@
result = false;
}
} else {
- if (resResults == null) {
+ if (queryResults == null) {
parserLogWrite(true,
1);
result = true;
} else {
@@ -1763,7 +1764,7 @@
public void responseProcessor(String responseDirectory) {

System.out
- .println("Starting validating and parsing
SetupData with key responses...");
+ .println("Starting validating and parsing
SetupData without key responses...");
// Initializing dom and jdom builders
DocumentBuilderFactory factory =
DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(true);
@@ -1847,7 +1848,7 @@

// successful");

parserLogWrite(true, i, j, 0);
}
else {
-
parserLogWrite(false, 1, j, 0);
+
parserLogWrite(false, i, j, 0);
}
} else {

System.out.println("Failed");
@@ -1886,7 +1887,7 @@

// successful");

parserLogWrite(true, i, j, 0);
}
else {
-
parserLogWrite(false, 1, j, 0);
+
parserLogWrite(false, i, j, 0);
}
} else {

System.out.println("Failed");
@@ -1914,7 +1915,7 @@

}
System.out
- .println("Setup Data with key
responses validated and parsed!");
+ .println("Setup Data without key
responses validated and parsed!");

System.out
.println("Results at
ValidationLogFile.txt and ParserLogFile.txt ");

Modified:
trunk/functional-testing/sqlma/l2/SetupDataRequest/SetupDataRequests.java
===================================================================
--- trunk/functional-testing/sqlma/l2/SetupDataRequest/SetupDataRequests.java
2007-02-09 18:15:00 UTC (rev 2051)
+++ trunk/functional-testing/sqlma/l2/SetupDataRequest/SetupDataRequests.java
2007-02-12 09:14:57 UTC (rev 2052)
@@ -16,7 +16,7 @@
import sqlma.common.SQLMAFunctionalTestsUtilities;

/**
- * Class for creating Setup Data request used in functional testing the SQL
MA
+ * Class for creating Setup Data requests used in functional testing the SQL
MA
*
* @author Michalis Michael,Cynet
*
@@ -467,7 +467,7 @@
parameterSettings_now[0] = "time";
parameterSettings_now[1] = "now";

- nmwg = Namespace.getNamespace("nmwg",
+ utilities.nmwg =
Namespace.getNamespace("nmwg",

"http://ggf.org/ns/nmwgother/2.0/";);
doc
.getRootElement()
@@ -488,8 +488,8 @@
doc.getRootElement().addContent(
utilities.createData("data1",
"meta2"));

- nmwg = Namespace.getNamespace("nmwg",
-
"http://ggf.org/ns/nmwgother/2.0/";);
+ utilities.nmwg =
Namespace.getNamespace("nmwg",
+
"http://ggf.org/ns/nmwg/base/2.0/";);

break;
// A request where the select namespace is not set
correctly
@@ -497,7 +497,7 @@
parameterSettings_now[0] = "time";
parameterSettings_now[1] = "now";

- select = Namespace.getNamespace("select",
+ utilities.select =
Namespace.getNamespace("select",

"http://ggf.org/ns/nmwg/nops/select/2.0/";);
doc
.getRootElement()
@@ -518,7 +518,7 @@
doc.getRootElement().addContent(
utilities.createData("data1",
"meta2"));

- select = Namespace.getNamespace("select",
+ utilities.select =
Namespace.getNamespace("select",

"http://ggf.org/ns/nmwg/ops/select/2.0/";);
break;
// A request where the type attribute is empty
@@ -1050,7 +1050,8 @@
doc.getRootElement().addContent(
utilities.createData("data1",
"meta2"));
break;
- // A request where the name attribute of the ibatis
config parameter
+ // A request where the name attribute of the event
type config
+ // parameter
// element is missing
case 27:
parameterSettings_now[0] = "time";
@@ -1462,10 +1463,9 @@
utilities.createData("data1",
"meta2"));

break;
-
+ // A request where the second metadata metadataIdRef
attribute
+ // is missing.
case 42:
- // A request where the second metadata
metadataIdRef attribute
- // is missing

parameterSettings_now[0] = "time";
parameterSettings_now[1] = "now";
@@ -1655,7 +1655,7 @@

}
System.out
- .println("SetuData requests have been
created and stored at "
+ .println("SetupData requests have
been created and stored at "
+ args[0] + "!");
} else {
System.out.println("Wrong input. Needed parameter
is:");

Added:
trunk/functional-testing/sqlma/l2/SetupDataRequest/SetupDataResponseParser.java


Property changes on:
trunk/functional-testing/sqlma/l2/SetupDataRequest/SetupDataResponseParser.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native



  • r2052 - in trunk/functional-testing/sqlma/l2: MeasurmentArchiveStoreRequest SetupDataRequest, svnlog, 02/12/2007

Archive powered by MHonArc 2.6.16.

Top of Page