[SOLVED] Use custom procedures in multiple test cases [message #1698525] |
Tue, 16 June 2015 09:05 |
Andreas Neuteich Messages: 4 Registered: April 2015 |
Junior Member |
|
|
Hi all,
Since I need to do some stuff in multiple test cases, I would like to create some procedures and use those procedures in my test cases. I have some problems creating/using them, though.
First, is it correct to create the procedures in a *.test file? I would like to separate the procedures from the other test cases, so I've created a new folder (say "myproc") and created the procedures there.
Now, my second problem is that I cannot use those defined procedures in my other test cases. This is the error message that appears: "Scriptlet X not found at Y".
Simple example: I have two files, one for the procedure, one is my test case
/myproc/MyHelloWorldProcedure
/MyTestCase
MyHelloWorldProcedure:
proc "say-hello-world-procedure" {
show-alert "Hello, you"
}
MyTestCase:
Error Message that I got: Scriptlet MyHelloWorldProcedure not found at my-hello-world-procedure .
When I'm using the procedure in the same file in which it is defined (i.e. MyHelloWorldProcedure), it works. But in that case I need to define the same procedure in every test case that uses it? There is probably an easy solution to it, I'm just not seeing it..
Thanks,
Andreas
[Updated on: Mon, 05 October 2015 06:56] by Moderator Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03560 seconds