Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Missing TestBench classes after upgrading
Hi there,
after updating to Vaadin 7.7.3 are not found anymore these classes:
com.vaadin.testbench.TestBenchTestCase
com.vaadin.testbench.ScreenshotOnFailureRule
Here is my ivy.xml
<?xml version="1.0"?>
<!DOCTYPE ivy-module [
<!ENTITY vaadin.version "7.7.3">
<!ENTITY guava.version "19.0">
]>
<ivy-module version="2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
<info organisation="com.carmelosaffioti" module="powergest" />
<configurations>
<!-- The default configuration, which should be deployed to the server -->
<conf name="default" />
<!-- A configuration only needed when compiling the widget set. Should
not be deployed to the server -->
<conf name="widgetset-compile" />
<!-- A configuration used in compilation of server side classes only.
Should be deployed to the server -->
<conf name="nodeploy" />
</configurations>
<dependencies defaultconf="default" defaultconfmapping="default->default">
<!-- The core server part of Vaadin -->
<dependency org="com.vaadin" name="vaadin-server" rev="&vaadin.version;" />
<!-- Vaadin themes -->
<dependency org="com.vaadin" name="vaadin-themes" rev="&vaadin.version;" />
<!-- Push support -->
<dependency org="com.vaadin" name="vaadin-push" rev="&vaadin.version;" />
<!-- Servlet 3.0 API -->
<dependency org="javax.servlet" name="javax.servlet-api" rev="3.0.1" conf="nodeploy->default" />
<!-- TestBench 4 -->
<dependency org="com.vaadin" name="vaadin-testbench-api" rev="latest.release" conf="nodeploy -> default" />
<!-- Precompiled DefaultWidgetSet -->
<dependency org="com.vaadin" name="vaadin-client-compiled"
rev="&vaadin.version;" />
<!-- Vaadin client side, needed for widget set compilation -->
<dependency org="com.vaadin" name="vaadin-client" rev="&vaadin.version;"
conf="widgetset-compile->default" />
<!-- Compiler for custom widget sets. Should not be deployed -->
<dependency org="com.vaadin" name="vaadin-client-compiler"
rev="&vaadin.version;" conf="widgetset-compile->default" />
<!-- Vaadin Maddon -->
<dependency org="org.peimari" name="maddon" rev="1.21" />
<!-- Google Guava -->
<dependency org="com.google.guava" name="guava" rev="&guava.version;" />
<!-- Google Analytics -->
<dependency org="org.vaadin.addons" name="googleanalyticstracker" rev="2.1.0" />
<!-- Jasper Reports -->
<dependency org="net.sf.jasperreports" name="jasperreports" rev="6.2.0" conf="*->default" />
<dependency org="net.sf.jasperreports" name="jasperreports-fonts" rev="6.0.0"/>
</dependencies>
</ivy-module>
Here is my ivysettings.xml
<?xml version="1.0" encoding="UTF-8"?>
<ivysettings>
<settings defaultResolver="default" />
<resolvers>
<chain name="default">
<!-- Public Maven repository -->
<ibiblio name="public" m2compatible="true" />
<!-- Vaadin Add-on repository -->
<ibiblio name="vaadin-addons" usepoms="true" m2compatible="true"
root="http://maven.vaadin.com/vaadin-addons" />
<!-- Vaadin snapshots repository -->
<ibiblio name="vaadin-snapshots" usepoms="true" m2compatible="true"
root="https://oss.sonatype.org/content/repositories/vaadin-snapshots" />
<!-- Repository used for Vaadin modified smartsprites library -->
<dual name="custom-smartsprites">
<filesystem name="smartsprites-ivy">
<ivy pattern="${basedir}/ivymodule/[module]-ivy-[revision].xml" />
</filesystem>
<url name="smartsprites-artifact">
<artifact
pattern="http://dev.vaadin.com/svn/versions/6.8/build/smartsprites/lib/[artifact](-[revision]).[ext]" />
</url>
</dual>
<!-- Jasper Reports repository -->
<ibiblio name="jaspersoft" m2compatible="true" root="http://jasperreports.sourceforge.net/maven2/"/>
<!--<ibiblio name="jaspersoft-third-party" usepoms="true" m2compatible="true"
root="http://jaspersoft.artifactoryonline.com/jaspersoft/third-party-ce-artifacts" />-->
</chain>
</resolvers>
<modules>
<!-- Vaadin patched SmartSprites -->
<module organisation="com.carrotsearch" name="smartsprites"
revision="0.2.3-itmill" resolver="custom-smartsprites" />
</modules>
</ivysettings>
Hi Carmelo,
There was something fuzzy in the "latest.release" resolution, it's already been fixed but will require cleaning ivy cache to work locally, if you're using eclipse with some ivy plugin it should appear as "Ivy / Clean cache" in context menu.
Apart from that, I'd recommend you to use same vaadin.version property for vaadin-testbench-api. It would look like this:
<!-- TestBench 4 -->
<dependency org="com.vaadin" name="vaadin-testbench-api" rev="&vaadin.version;" conf="nodeploy -> default" />
Hope this helps,
Guillermo
Hi Guillermo,
after replacing "latest.release" with "&vaadin.version;" and cleaning Ivy cache, it did not work. I upgraded my Eclipse too and then it worked :)
Thanks