• 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: Selenium tests
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Selenium tests


  • Subject: Re: Selenium tests
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 29 Jun 2007 09:50:18 -0700


On Jun 29, 2007, at 8:13 AM, Simon McLean wrote:

Hi All -

I have some selenium tests that work when I "walk" through them, but fail when i "run" through them.

Has anyone else seen this behavior ? Any known workarounds ?

Thanks, Simon

ps. i am using Selenium IDE with chuck's wolocators.js IDE extensions, not ERSelenium

The problem you are seeing is that when running the tests, it can go much faster that you can as a person and much faster than the IDE walkthrough. What this does is to expose concurrency bugs and lack of synchronization in your tests. Adding a waitFor... step in the tests or the occaisional sleep command will avoid these. If your app is slow, you might also get timeout errors. Use setTimeout to set a realistic amount of time to wait.


Post some real examples and I will show you how I would fix them.

Chuck

--

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: Selenium tests
      • From: Simon McLean <email@hidden>
References: 
 >Selenium tests (From: Simon McLean <email@hidden>)

  • Prev by Date: Re: Caret Notation
  • Next by Date: Re: Refreshing complete page from a header component
  • Previous by thread: Re: Selenium tests
  • Next by thread: Re: Selenium tests
  • Index(es):
    • Date
    • Thread