Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Canoo webtest

843834Jun 28 2006
Hi all,

I want to run a webtest using Canoo. The test file looks like this:

<?xml version="1.0"?>
<!DOCTYPE project [
<!ENTITY config SYSTEM "config.xml">
]>

<project name="ExampleTest" basedir="." default="main">
<property name="webtest.home" value="C:/webtest"/>

<taskdef file="${webtest.home}/webtestTaskdefs.properties">
<classpath>
<fileset dir="${webtest.home}" includes="**/lib/*.jar"/>
<fileset dir="${webtest.home}" includes="**/lib/base/*.jar"/>
<fileset dir="${webtest.home}" includes="**/lib/build/*.jar"/>
<fileset dir="${webtest.home}" includes="**/lib/optional/*.jar"/>
</classpath>
</taskdef>

<target name="main">
<testSpec name="homePage">
<config
host="www.cse.scu.edu"
port="80"
protocol="http"
basepath="~jnoll/"
/>
<steps>
<invoke
stepid="get Home Page"
url="index.html"
/>
<verifytext
stepid="we should see my name."
text="Prof. John Noll"
/>
</steps>
</testSpec>
</target>
</project>

The problem is, that I get the following stacktrance:
C:\webtest>ant -buildfile test-canoo.xml
Buildfile: test-canoo.xml

BUILD FAILED
C:\webtest\test-canoo.xml:9: taskdef class com.canoo.webtest.steps.pdftest.VerifyPdfTextStep cannot be found

My environment variables:
ANT_HOME=C:\Apache Software Foundation\apache-ant-1.6.5
WEBTEST_HOME=C:\webtest

I hope somebody can help me :-)

Thanks in advance

Comments

JustinCave
If you're familiar with nextval, I assume you are familiar with creating sequences and using sequences to populate primary keys...

You can always create a BEFORE INSERT trigger that automatically generates the primary key for the table. You would have to modify your INSERT statement to use the RETURNING clause if you want the client to have the value of the just-inserted primary key after the INSERT.

Justin
45878
You could create a trigger on the table which performs the "nextval" from a sequence table, that way your Java application does not need to do the work.
519688
use a sequence, and populate it via a "before insert for each row" trigger.

no other way.
514521
Not working..

From w/i SQLPLUS i execute this line:
create trigger dbame.p_trigger before insert on dbame.plant for each row

dbame is my oracle username
plant is the table name

SQLPLUS is looking for more information and/or a closing "tag" (not a semi-colon)

any help would be appreciated..

Thanks
Kamal Kishore
http://download-east.oracle.com/docs/cd/B10501_01/appdev.920/a96590/adg13trg.htm#431
519688
read the manuals
look for the section on table triggers
1 - 6
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 26 2006
Added on Jun 28 2006
0 comments
185 views