Tobi McFarland

Greenhorn
+ Follow
since Nov 21, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Tobi McFarland

Thanks, I'll give it a try! There is something similar in the WebDriver API. I've been putting in manual timeouts periodically like:

driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);

12 years ago
1- Is it acceptable to use JUnit to write Selenium 2 tests with Web Driver? We are using Jenkins + Maven to execute the unit tests.

2- We have noticed fairly often, that when a test is executed locally it passes, but as soon as the test is pointed at the development environment it fails. It looks like the tests execute so quickly (esp in Firefox) that tests often time out before a page loads. Are there any tricks to avoid this? Is this a common occurrence?

I can't find a lot of documentation on Selenium 2 yet, so any tips would be appreciated.

Thanks!
12 years ago
I work in a mostly scrum process. I say 'mostly scrum' because our initial requirements were the result of a waterfall design-we have been using those use cases (or stories) while doing development. My question is, in a purely Scrum (or any kind of iterative development for that matter) where/when are requirements gathered? Are a few days in every iteration (pre-planning perhaps?) used to develop these new requirements? Is everything done in Iteration 0?

When is the most practical time to develop requirements?

Thanks!
I thought about that initially, but since the collection itself was being set in a tag, I thought I might be able to manipulate it using JSTL. I was trying to avoid changing the tag-because that would cause a ripple effect on other parts of the code.

I'll think about this some more.

Thanks Bear!
15 years ago
JSP
If if the test condition is met, removing the element being tested from the collection.
15 years ago
JSP
Sorry to post such a basic question, but have been searching everywhere and can't find anything.

I have a tag that is grabbing a collection, and setting as a variable on the page. I can correctly use c:forEach to iterate through the elements like this:

<c:forEach var = "st" items ="${sts}" varStatus="status">
<c:if test ="${(st.value == 'TEST')}">
</c:if>
</c:forEach>

Is it possible to delete the "st" element in the <c:if> from the "sts" collection since it is being set on the page? If so, what is the syntax.

Thanks-
15 years ago
JSP
Just signed up for the SCJP after many years of putting it off.

Bert and Kathy, please allow me to borrow your collective exam wisdom (that is, after having read the cert book, maybe a mind meld?).

Gracie!

Tobi
16 years ago
If you were to make a recommendation to a development team as to the first thing they should do to begin to embrace CI-what would be the first thing you would recommend? (assuming that they already use CVS)
the second > should have been: &-g-t;
19 years ago
JSP
Hi-

Has anyone ever seen a ">" sign appear on a JSP page when it hasn't been explicitly coded (nor has the ">" been explicitly coded)? And when view sourcing the page, the > is not there? We are using BEA Web Logic server. Sorry I don't have the code in front of me or I would submit a snippet.

Thanks for any help!
19 years ago
JSP
I didn't write the scriplet in question-it's legacy code. I'm just trying to put some new functionality into this particular JSP-and I'm just starting to learn the in's and out's of J2EE. Thanks again for the information.
19 years ago
JSP
Here's the scriptlet in question:

<%
int k = 0;
while (k < customFieldNames.size()) {
int z = k+1;
String placeHolder = (String)request.getAttribute("USER_DEFINED" + z);
out.println("<tr><td align=\"left\" valign=\"top\">");
out.println(customFieldNames.get(k) + ": ");
out.println("</td><td align=\"left\" valign=\"top\">");
if (placeHolder != null) {
out.println("<INPUT TYPE=\"TEXT\" NAME=\"userDefined" + (k + 1) + "\" size=\"20\" maxlength=\"500\" value=\"" + placeHolder + "\">");
} else {
out.println("<INPUT TYPE=\"TEXT\" NAME=\"userDefined" + (k + 1) + "\" size=\"20\" maxlength=\"500\">");
}
out.println("</td>");
out.println("</tr>");
k++;
}
%>

It's getting user defined fields from the request, and putting them in a cell next to the field. I'm trying to use the value of placeHolder as an argument to a tag-and was wondering if i embedded the tag in the body of the scriplet if that would work.
19 years ago
JSP
Is it possible to do this? I've googled around and haven't come up with any obvious examples.

Thanks
19 years ago
JSP
Problem solved. Simply replace the quotes with the ASCII for quotes. :-)
19 years ago
JSP
I am using Hibernate to pull text that is HTML mark up from a database, and passing that to a Javascript as an argument to a function that creates a pop up box.

Example DB string:

<html><body>Dates for Dummies</body></html>

when passed to this Javascript function:

function popHTML(txt){
var html = txt;
newwindow3=window.open('','name','height=200,width=150 screenX=350, screenY=100, left=500');
var tmp3 = newwindow3.document;
tmp3.write(html);
tmp3.close();
}

it successfully creates a pop up box with the text from the DB. However, if adding formatting to the string like <font face = "Arial"> things get quirky. Both the JSP and Javascript hiccup on the ". After changing the db string to include: <font face = \"Arial\">, there's still a problem, presumably that the JSP recognizes \" as a "-and passes it to the Javascript as simply a ".

Has anyone had to work around something similar?

Thanks
19 years ago
JSP