You are viewing a plain text version of this content. The canonical link for it is here.
Posted to olio-commits@incubator.apache.org by sh...@apache.org on 2009/03/19 21:32:49 UTC
svn commit: r756215 -
/incubator/olio/workload/rails/trunk/src/org/apache/olio/workload/driver/UIDriver.java
Author: shanti
Date: Thu Mar 19 21:32:49 2009
New Revision: 756215
URL: http://svn.apache.org/viewvc?rev=756215&view=rev
Log:
Removed check of login for doPersonDetail. Removed requirement for redirect
in doMultiPartPost as no redirects happen with latest rails version.
Modified:
incubator/olio/workload/rails/trunk/src/org/apache/olio/workload/driver/UIDriver.java
Modified: incubator/olio/workload/rails/trunk/src/org/apache/olio/workload/driver/UIDriver.java
URL: http://svn.apache.org/viewvc/incubator/olio/workload/rails/trunk/src/org/apache/olio/workload/driver/UIDriver.java?rev=756215&r1=756214&r2=756215&view=diff
==============================================================================
--- incubator/olio/workload/rails/trunk/src/org/apache/olio/workload/driver/UIDriver.java (original)
+++ incubator/olio/workload/rails/trunk/src/org/apache/olio/workload/driver/UIDriver.java Thu Mar 19 21:32:49 2009
@@ -69,6 +69,7 @@
@Row({ 0, 0, 0,100, 0, 0, 0 }) // Add Event
}
)
+
@NegativeExponential (
cycleType = CycleType.CYCLETIME,
cycleMean = 5000,
@@ -668,7 +669,10 @@
//buffer.append(fileServiceURL).append("file=p");
ctx.recordTime();
+ // Shanti: No need to be logged on to see user
+ /**
if (isLoggedOn) {
+ **/
int id = random.random(1, ScaleFactors.users);
GetMethod personDetailGet = new GetMethod(personDetailURL + id);
httpClient.executeMethod(personDetailGet);
@@ -679,6 +683,7 @@
String event = RandomUtil.randomEvent(random, responseBuffer);
if (event != null)
selectedEvent = event;
+ /***
}
else
{
@@ -686,6 +691,7 @@
logger.warning("Trying to view user, but not logged in");
http.fetchURL(homepageURL);
}
+ ***/
ctx.recordTime();
}
@@ -887,7 +893,7 @@
int idx = buffer.indexOf(message);
if (idx == -1 )
throw new Exception("Could not find success message '" + message + "' in result body");
- } else {
+ } else if (status != HttpStatus.SC_OK) {
throw new Exception("Multipart post did not redirect");
}
}