• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [Wonder-disc] ERSelenium without ERExtensions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Wonder-disc] ERSelenium without ERExtensions


  • Subject: Re: [Wonder-disc] ERSelenium without ERExtensions
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 26 Jun 2007 15:31:29 -0700


On Jun 26, 2007, at 3:19 PM, Steven Mark McCraw wrote:

ERSelenium's idea is to facilitate a lot of common tasks that are
usually solved manually to organize Selenium testing. Among these
tasks are:
- Automatic test suites generation from your folder structure.

I am curious as to what you are doing for this. To me, Selenium tests are for functional testing and so have no relation at all to project structure.



The reason for doing it this way (says the guy who's used ERSelenium a few times now) is that is a piece of cake to create test suites. There is no maintaining an external test suite. You just create a folder called Selenium (or whatever you configure the name to be) in the Properties folder of the project you want to test, and any folder you embed within it becomes a test suite when you run everything from a simple URL. You drop your selenium tests in child folders of the Selenium folder and you are done.


Are the test cases ordered?


It is ridiculously easy, as
opposed to the whole chrome:// test suite thing, which I never got to
work, although I did not spend much time trying because ERSelenium
became available just as I began getting good and familiar with using
Selenium.

The up side to user ERSelenium test suites (besides how easy it is to
create them) is that they run in any browser.  All you have to do is
point to the 'StartSeleniumTesting' direct action class in your
application url, and away you go.  I believe I read that if you use
chrome:// as your URL, you are stuck with Firefox as a testing
platform, because only Firefox supports that protocol.


Well, up to a point. Have you tried file uploads yet? :-) There are security restrictions on JavaScript and running in chrome mode is the only way (that I know of) to get around them.


- Writing tests in the preferred format - wiki/html.

Is that different from Selenese?

The difference is that instead of using html tags to delimit things, you use pipe symbols, and it's a lot more readable (says me). Instead of

<tr>
	<td>type</td>
	<td>userName</td>
	<td>chill2</td>
</tr>
<tr>
	<td>type</td>
	<td>password</td>
	<td>chill2</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>loginButton</td>
	<td></td>
</tr>

You have

|type|userName|chill2|
|type|password|chill2|
|clickAndWait|loginButton||

But I believe you can use this format with or without ERSelenium.

I use a WYSIWG HTML editor. :-)


Chuck


- Unified format of setup/tear down methods with appropriate error
messages.

I don't see the need for these. For me, the Selenium tests should be from the point of view of the user of the application. So any setup / tear down outside of loading the bootstrap data should be done through the UI and be part of the test. In some rare occasions (mimicking interactions from other systems), I do need some setup that is not possible from the UI. In that case, I create a direct action to do this and call it from the test in a new window. The direct action is only enabled during testing runs.

I agree with you here. I've just been using direct actions. Not sure what ERSelenium brings to the table here or how to use it.




---------------------------------------------------------------------- ---
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wonder-disc mailing list
email@hidden
https://lists.sourceforge.net/lists/listinfo/wonder-disc



--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: [Wonder-disc] ERSelenium without ERExtensions
      • From: Michael Bushkov <email@hidden>
References: 
 >Re: [Wonder-disc] ERSelenium without ERExtensions (From: Chuck Hill <email@hidden>)
 >Re: [Wonder-disc] ERSelenium without ERExtensions (From: Steven Mark McCraw <email@hidden>)

  • Prev by Date: Re: [Wonder-disc] ERSelenium without ERExtensions
  • Next by Date: Newbie: changing some attributes before saving
  • Previous by thread: Re: [Wonder-disc] ERSelenium without ERExtensions
  • Next by thread: Re: [Wonder-disc] ERSelenium without ERExtensions
  • Index(es):
    • Date
    • Thread