Share

TestHarness

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Test-Step Representation

You are viewing a single message from this topic. View all messages.

  1. 2006-06-15 11:01:51 UTC
    I looked a bit at the Method class and found that you can actually do function-callbacks in Java also, which would make it possible to contain each test-step in a separate method. The downside is that the only way I've found to obtain a Method instance is by quering a method by its name, which is done during runtime. This means that the test-developer will not know if a test-case's steps are spelled right until the case is executed. A better solution would be able to feed the method instance as for classes with MyClass.class, but it have not found any way to do this... Have you?

    Anyway, the proposed way to add a step using the design above would be:

    addStep("MyMethod", "This is the step description");
< Previous | 1 | Next >

Add a Reply

You can use Markdown syntax in your reply.

Preview

Monitor this

Log in to monitor this topic. Not registered? Create an account to receive email updates when replies are posted to this topic. If you do not log in or register, your reply will be added anonymously.