Hi community,

I'm, currently developing a webtest suite using groovy instead of ant.

I placed the testcases written in groovy in files ending in *Test.groovy in
folder "[WEBTEST_PROJECT_FOLDER]/tests" this works fine.



I developed a new custom step in a file called "VerifyTableSorted.groovy":

--------------------------------------------------------------------------
import com.canoo.webtest.steps.Step

public class VerifyTableSorted extends Step {

      String varA

      public void doExecute(){
            //echo message:"content: ${varA}"
      }
}

ant.project.taskDefinitions['verfiyTableSorted']=VerifyTableSorted
--------------------------------------------------------------------------

I tried to integrate the step into my testcases:

1. placed the file in the folders /definitions or /includes, but it didn't
work
2. created a groovy-step in the testcase referring to the file
"VerifyTableSorted.groovy",
     -> file was found, but didn't found main(args[]) - logical it's has
none
3. tried to place the step source code in the groovy-step body, didn't work
either


Does anyone know how to integrate the custom groovy step?
Idea's are greatfully appreciated :)


Best regard,
Alessandro
_________________________________________________________________
Diese Information ist ausschliesslich fuer den Adressaten bestimmt und kann
vertraulich oder gesetzlich geschuetzte Informationen enthalten. Wenn Sie
nicht der bestimmungsgemaesse Adressat sind, unterrichten Sie bitte den
Absender und vernichten Sie diese Mail. Anderen als dem
bestimmungsgemaessen Adressaten ist es untersagt, diese E-Mail zu lesen, zu
speichern, weiterzuleiten oder ihren Inhalt auf welche Weise auch immer zu
verwenden. Wir verwenden aktuelle Virenschutzprogramme. Fuer Schaeden, die
dem Empfaenger gleichwohl durch von uns zugesandte mit Viren befallene
E-Mails entstehen, schliessen wir jede Haftung aus.

* * * * *

The information contained in this email is intended only for its addressee
and may contain confidential and/or privileged  information. If the reader
of this email is not the intended recipient, you are hereby notified that
reading, saving, distribution or use of the content of this email in any
way is prohibited. If you have received this email in error, please notify
the sender and delete the email. We use updated antivirus protection
software. We do not accept any responsibility for damages caused anyhow by
viruses transmitted via email.

Reply via email to