[rules-users] error running test scenarios
Fnu Mahalakshmi
FMahalakshmi at nyx.com
Fri May 28 16:18:07 EDT 2010
________________________________
From: Fnu Mahalakshmi
Sent: Friday, May 28, 2010 3:43 PM
To: 'rules-users-request at lists.jboss.org'
Subject: error running test scenarios
Hi,
I am working on a drools application and I am getting the following error:
I import java files to my application and then create the rules + test scenarios to run them.
Attaching a jar file of the java classes.
My Test Case:
Run scenario
[cid:image001.gif at 01CAFE7B.7BEA36E0]
GIVEN
insert [Ovo]
[TestOvoUseType]
ipAddress:
[cid:image002.gif at 01CAFE7B.7BEA36E0]
useType:
[cid:image002.gif at 01CAFE7B.7BEA36E0]
[cid:image002.gif at 01CAFE7B.7BEA36E0]
[cid:image001.gif at 01CAFE7B.7BEA36E0]
EXPECT
[cid:image002.gif at 01CAFE7B.7BEA36E0]
[cid:image003.gif at 01CAFE7B.7BEA36E0]
Use real date and time
Use a simulated date and time
Expect rules
Production Ips:
fired at least once
did not fire
fired this many times:
Choose...
[cid:image002.gif at 01CAFE7B.7BEA36E0]
More...
(configuration)
Allow these rules to fire:
Prevent these rules from firing:
All rules may fire
[cid:image001.gif at 01CAFE7B.7BEA36E0]
[cid:image004.gif at 01CAFE7B.7BEA36E0]
[cid:image001.gif at 01CAFE7B.7BEA36E0]
(globals)
Test for checking Production Ips
Title: [ProdIp Test]
[show more info...]
Rules case:
WHEN
[cid:image001.gif at 01CAFE7B.7BEA36E0]
Ovo
useType
--- please choose ---
is equal to
is not equal to
matches
sounds like
[cid:image005.gif at 01CAFE7B.7BEA36E0]
[cid:image002.gif at 01CAFE7B.7BEA36E0]
[cid:image002.gif at 01CAFE7B.7BEA36E0]
THEN
[cid:image001.gif at 01CAFE7B.7BEA36E0]
Insert Ip
type
[cid:image002.gif at 01CAFE7B.7BEA36E0]
[cid:image002.gif at 01CAFE7B.7BEA36E0]
(options)
[cid:image001.gif at 01CAFE7B.7BEA36E0]
View source
Validate
Ips in Ovo are Production Ips
Title: [Production Ips]
[show more info...]
Error stack:
15:36:25,517 INFO [STDOUT] ERROR 28-05 15:36:25,507 (ServiceImplementation.java:runScenario:1942) [Error: unable to find constructor for: org.servers.Ovo] [Near : {... new org.servers.Ovo( ....}] ^ [Line: 1, Column: 0]
I have defined the constructor in the Ovo class and Ip class respectively.
Please let me know if you can throw some light on this.
Thanks,
Jillika
</pre>
<P><hr size=1></P>
<P><STRONG><font color=green>Please consider the environment before printing this email.</font></STRONG></P>
<P><STRONG>Visit our website at <a href="http://www.nyse.com">http://www.nyse.com</a> <br>
*****************************************************************************
<br>
Note: The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext.
</STRONG></P><pre>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100528/82b2a913/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 318 bytes
Desc: image001.gif
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20100528/82b2a913/attachment.gif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 94 bytes
Desc: image002.gif
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20100528/82b2a913/attachment-0001.gif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.gif
Type: image/gif
Size: 114 bytes
Desc: image003.gif
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20100528/82b2a913/attachment-0002.gif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.gif
Type: image/gif
Size: 563 bytes
Desc: image004.gif
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20100528/82b2a913/attachment-0003.gif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.gif
Type: image/gif
Size: 88 bytes
Desc: image005.gif
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20100528/82b2a913/attachment-0004.gif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.gif
Type: image/gif
Size: 112 bytes
Desc: image006.gif
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20100528/82b2a913/attachment-0005.gif
More information about the rules-users
mailing list