@plightbo

The Setup / TearDown instructions found at http://seleniumhq.org/projects/core/usage.html explains a work around to the issue, however the work around is not the technique I expected.  I am personally most familiar with setup/teardown methods that executes before and after each test case.

Just to throw it out there, a function call that opens a given link page, then executes selenium commands found there, which then after completion would return to the original page would probably be what I would be expecting.  

The workflow behind the Test Suite would probably has a function that I am searching for.  It is similar in that the flow of control starts by opening a test case, executes the commands, then returns to open another test case if available.

Here is a quick crude example in pseudocode of what I am imagining.

File: login_user.html
Login User

  •  open(”/home”);
  • type(”usernameField”, “apple”);
  • type(”passwordField”, “password”);
  • click(”submitButton”, true);
  • assertLocation(”/dashboard”);
     

File: logout_user.html
Logout User

  • click(”Logout”, true);
  • assertLocation(”/home”);
     

File: test_invite_friends.html
Test Invite Friends

  • execute(”login_user.html”);
  • click(”create event”, true);
  • verifyText(”Invite Friends”, true);
  • execute(”logout_user.html”); 
     

Ideally, I would like to declare the Setup/Teardown functions in the Test Suite page instead at the beginning and end of each unit test.  However I noticed that the Test Suite is only single column table;  I am unsure how difficult it would be get Selenium to support multiple columns. 

Here is an example of a test suite file in HTML.

<html>
<head>
<title>My Application Test Suite</title>
</head>
<body>

<table>
<tr><td><b>Suite Of Tests</b></td></tr>
<tr><td>Setup</td><td><a href=“./setup.html”>Test Login</a></td></tr>
<tr><td>Teardown</td><td><a href=“./teardown.html”>Test Login</a></td></tr>
<tr><td><a href=“./TestLogin.html”>Test Login</a></td></tr>

<tr><td><a href=“./TestFormEntry.html”>Test Form Entry</a></td></tr>
<tr><td><a href=“./TestFormSave.html”>Test Form Save</a></td></tr>
</table>

</body>
</html>

Please let me know if I need to provide more details or a better written explaination.
- Thanks

@whereisciao

 

I have recently moved to Waldo from the northland with hopes to save some money, live closer to work, and to soak in the suburb. The area is such a great area. The houses are old but well kept. A good amount of families are out here. It is seriously a great place for a starter family.

The only horrible thing about this living arrangement is the house itself. The basement floods; which have come to realize is normal. I am happy that most of my boxes are raised. I will be going to Home Depot soon to build another platform.

Wires to sense the world

Had to run out to Radio Shack today to find 22-gauge wire for the Arduino board.  Once all the sensors and wires were finally soldered together, it was amazing to turn on the “system”.  I am utterly amazed by all the values being collected by the four sensors.  This is really geeky, but I was able to burn an afternoon.

Yesterday my supplies for Throwies just came in the mail.  Now armed with 100 rare-earth magnets, 100 LEDs and 100 batteries I am so ready to assemble my “For Shitz and Grins” project.  Still do not have secure location to throw and entertain crowds with such mentioned Throwies.

Later on the night, I started assembling/building my multi-touch panel.  The first step thus far has been to polish an acyclic pane of glass.  After sanding for about 30 mins, I assumed the edges were nice and polished, so I proceeded to take about 25 IR LEDs and 25 batteries from the Throwie project to test out the polishing.  Let say the results were less than pleasing.

If you don’t know, I have been out of the country for a good 5 months of my life.  During that time I worked a crazy amount of hours that generated a total sum of 625 hours for the first quarter.  That means many hours of personal time was spent as an employee.  After working so many hours, I have come to the realization that I can do a whole lot more than just programing in an obscure language.  With my two year mark coming up and my experiences it will make the decision to move on a different career easy.

Since I have been back in the States, I feel I am growing more into myself.  These past few weeks a boat load of money was spent on electronic parts and books.  I am happy and proud to say that I am a geek, a creative geek who needs to express himself through projects and art work.  My anger is constantly bottled up that without an outlet, my emotions are so depressing.

Well, that is just a sort brief on my life so far.  Tomorrow I will be working in the normal office.  Lets see what this weekend brings–who has meetings on Saturdays?