Category Archives: Uncategorized

@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.