Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

svn commit: r520449 - /lenya/trunk/src/modules-core/workflow/test/canoo/tes: msg#00017

cms.lenya.cvs

Subject: svn commit: r520449 - /lenya/trunk/src/modules-core/workflow/test/canoo/test.xml

Author: andreas
Date: Tue Mar 20 08:54:48 2007
New Revision: 520449

URL: http://svn.apache.org/viewvc?view=rev&rev=520449
Log:
Added web test to check the last-published footer

Modified:
lenya/trunk/src/modules-core/workflow/test/canoo/test.xml

Modified: lenya/trunk/src/modules-core/workflow/test/canoo/test.xml
URL:
http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/workflow/test/canoo/test.xml?view=diff&rev=520449&r1=520448&r2=520449
==============================================================================
--- lenya/trunk/src/modules-core/workflow/test/canoo/test.xml (original)
+++ lenya/trunk/src/modules-core/workflow/test/canoo/test.xml Tue Mar 20
08:54:48 2007
@@ -20,11 +20,11 @@

<import file="${webtest.home}/lib/taskdef.xml"/>

- <target name="main" depends="sequence, overview"/>
+ <target name="main" depends="sequence, published-footer, overview"/>


<target name="sequence">
- <webtest name="myTest">
+ <webtest name="Workflow sequence">
<config host="localhost" port="8888" protocol="http"
basepath="default/authoring" />
<steps>
<!-- login as lenya -->
@@ -94,10 +94,11 @@
<verifyElementText type="span" name="workflow-state" text="review"/>

<!-- publish -->
+
<invoke url="index.html?lenya.usecase=workflow.publish"/>
<clickButton name="submit"/>
<verifyElementText type="span" name="workflow-state" text="live"/>
-
+
<!-- deactivate -->
<invoke url="index.html?lenya.usecase=workflow.deactivate"/>
<clickButton name="submit"/>
@@ -112,6 +113,49 @@
</target>


+ <target name="published-footer">
+ <webtest name="Workflow sequence">
+ <config host="localhost" port="8888" protocol="http" basepath="default">
+ <option name="ThrowExceptionOnFailingStatusCode" value="false"/>
+ </config>
+ <steps>
+ <!-- login as alice -->
+ <invoke url="authoring/tutorial.html" />
+ <setInputField name="username" value="alice"/>
+ <setInputField name="password" value="levi"/>
+ <clickButton name="submit"/>
+ <verifyElementText type="span" name="workflow-state" text="authoring"/>
+
+ <!-- submit -->
+ <invoke url="authoring/tutorial.html?lenya.usecase=workflow.submit"/>
+ <clickButton name="submit"/>
+ <verifyElementText type="span" name="workflow-state" text="review"/>
+
+ <!-- live version should not exist -->
+ <invoke url="live/tutorial.html"/>
+ <storeResponseCode property="status" />
+ <verifyProperty name="status" text="404"/>
+
+ <!-- publish -->
+ <verifyText text="This page has not been published yet."/>
+ <invoke url="authoring/tutorial.html?lenya.usecase=workflow.publish"/>
+ <clickButton name="submit"/>
+ <verifyElementText type="span" name="workflow-state" text="live"/>
+ <verifyText text="This page was last published at"/>
+ <verifyText text="by Alice."/>
+
+ <invoke url="live/tutorial.html"/>
+ <verifyText text="This page was last published at"/>
+
+ <!-- logout -->
+ <invoke url="authoring/tutorial.html?lenya.usecase=ac.logout"/>
+ <clickButton name="submit"/>
+
+ </steps>
+ </webtest>
+ </target>
+
+
<target name="overview">
<webtest name="myTest">
<config host="localhost" port="8888" protocol="http"
basepath="default/authoring">
@@ -127,7 +171,6 @@

<invoke url="index.html?lenya.usecase=workflow.multiWorkflow"/>
<verifyElementText type="h1" text="Workflow Overview"/>
-
</steps>
</webtest>
</target>


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
solaris.opensol...    editors.vim/200...    web.turbogears....    jakarta.ant.dev...    mathematics.max...    text.unicode.ge...    lang.ruby.core/...    xfce.announce/2...    network.centeri...    php.cvs.pear/20...    user-groups.lin...    kde.devel.quant...    file-systems.ar...    redhat.fedora.t...    apple.fink.auto...    gnome.orbit.gen...    qplus.devel/200...    culture.transpo...    video.dri.user/...    operators.nanog...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation