logo

Frequently Asked Questions

Why can't I modify the test case after adding it?

If we do that, comments, rates and tests will be wrong adter the modification. We don't want to reset them because it's interesting to see what happened, even if it failed. The current best way to modify a test id to disable it (by adding a comment with the appropriate action) and to create a new test case.

Why the 200 bytes log length limitation?

It's a technical reason and I hope to find a nice solution to solve this.

When is my script run?

We don't have to create special event or function to launch the test case. We create an html page that looks like that:

<html><head></head><body>*Your HTML block*<script>*Your script block*</script></body></html>

What happens if my script throws an exception and its not caught?

The test case is under a try/catch block, so if something generates an exception that is not catched, the test case stops and report a failure with the content of the exception.

Does my test case continue after a failed assertion?

Yes, it continues until the test case is over.

What environment does the html fragment 'sit' in?

The html and javascript fragment is in an iframe that is dynamically created for each test.

How to do async test cases?

If the test case doesn't call any assertion functions, the system will wait 5 seconds to receive an async test. In this specific case, you can call the end() function to say to the system that it doesn't have to wait anymore. See an example.

How to simulate a client/server echange?

There's a special page (ping.php) that will answer exactly what you set in the _ variable. It is useful to test an xmlhttprequest. For example, calling

ping.php?_=hello
will return exactly 'hello'. See an example.

run