Building a large Automated Test infrastructure can be challenging. Providing you are following our best practices, the task should be relatively straight forward. That said from time to time you may see a Record or Replay issue. Here are some of the reasons that a seemingly good test can fail:
Server takes too long to respond or there is severe network lag the test case can hit it's timeout whilst waiting for the page/node to load. If you want to ensure your test waits longer you can alter the timeout. See
liquidtest.properties and in Eclipse the LiquidTest Preferences dialog to change the settings.
Dynamic URL's and URL validating: Some sites add Session ID's or tag variables to
URL's that change everytime the page is loaded. When recording with
URL validation enabled (disabled by default), the
URL will be hard-coded into the test case. This can be a particular problem and cause playback issues. Example:
// First time page is loaded
URL: http://www.jadeliquid.com?sess_id=123
// Visiting for a second time
URL: http://www.jadeliquid.com?sess_id=456
Solution: Disable the URL validating on these links, or use a different URL validation rule.
Browser specific HTML/Javascript code: Code that is written entirely for a specific browser will mean that scripts generated by LiquidTest may not replay across different browsers. For instance:
if(isInternetExplorer()) {
document.write("IE specific code");
} else if(isFirefox()) {
document.write("Firefox specific code");
}
The team at JadeLiquid are more than happy to help and look at any issues that arise. So ”never give up” just send us an email and we will look into it right away.