IDEMPIERE-206 Integrate fitnesse with iDempiere
This commit is contained in:
parent
a7b786a446
commit
39cf26d40c
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
|
||||
<classpathentry kind="lib" path="fitnesse.jar" sourcepath="lib/fitnesse-sources.jar"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>fitnesse</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
|
@ -0,0 +1,11 @@
|
|||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
|
||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||
org.eclipse.jdt.core.compiler.compliance=1.6
|
||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.source=1.6
|
|
@ -0,0 +1,36 @@
|
|||
This test is intended to create repeatable test cases for Average Invoice Costing, in order to make a refactor we need to:
|
||||
* stabilize current code
|
||||
* guarantee that refactoring don't break actual results
|
||||
|
||||
Brief description of the tests:
|
||||
* login into !-GardenAdmin-!
|
||||
* ensure that tenant is configured with avg inv costing
|
||||
* create a product (random name/value)
|
||||
* create a PO to purchase 50 products with value 10
|
||||
* create a material receipt
|
||||
* create a matchPO
|
||||
* post the matchPO
|
||||
* create an invoice
|
||||
* post the invoice
|
||||
* verify that avg cost=10 and qty=50
|
||||
* create a POS sales order for 3 products
|
||||
* post the shipment
|
||||
* verify that shipment was posted with cost=10
|
||||
* verify that avg cost=10 and qty=47
|
||||
* create a PO to purchase 10 products with value 11
|
||||
* create a material receipt based on the PO
|
||||
* check the matchPO created
|
||||
* post the matchPO
|
||||
* verify that avg cost=10.175438596 and qty=57
|
||||
* create an internal use inventory for 2 products
|
||||
* post internal use
|
||||
* verify that internal use used avg cost=10.175438596
|
||||
* verify that avg cost=10.175438596 and qty=55
|
||||
|
||||
!include -c .CommonTests.LoginGardenAdmin
|
||||
!include -c .CommonTests.ValidateClientSetOnAvgInv
|
||||
!include -c .CommonTests.SetRandomName
|
||||
!include -c .CommonTests.CreateProduct
|
||||
!include -c .CommonTests.CreateProductPrice
|
||||
!include -c .CommonTests.CreatePurchaseOrder
|
||||
!include -c .CommonTests.CreateMaterialReceipt
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit>true</Edit>
|
||||
<Files>true</Files>
|
||||
<Properties>true</Properties>
|
||||
<RecentChanges>true</RecentChanges>
|
||||
<Refactor>true</Refactor>
|
||||
<Search>true</Search>
|
||||
<Test/>
|
||||
<Versions>true</Versions>
|
||||
<WhereUsed>true</WhereUsed>
|
||||
</properties>
|
|
@ -0,0 +1 @@
|
|||
!contents -R2 -g -p -f -h
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit>true</Edit>
|
||||
<Files>true</Files>
|
||||
<Properties>true</Properties>
|
||||
<RecentChanges>true</RecentChanges>
|
||||
<Refactor>true</Refactor>
|
||||
<Search>true</Search>
|
||||
<Suite>true</Suite>
|
||||
<Versions>true</Versions>
|
||||
<WhereUsed>true</WhereUsed>
|
||||
</properties>
|
|
@ -0,0 +1,32 @@
|
|||
Create material receipt
|
||||
|
||||
!|Create Record|
|
||||
|*Table* |M_InOut |
|
||||
|ad_org_id |@AD_Org_ID@ |
|
||||
|c_doctype_id |@Ref=C_DocType[Name='MM Receipt'].C_DocType_ID|
|
||||
|c_bpartner_id |@c_bpartner.c_bpartner_id@ |
|
||||
|c_bpartner_location_id|@Ref=C_BPartner_Location[C_BPartner_ID=@c_bpartner.c_bpartner_id@].C_BPartner_Location_ID |
|
||||
|m_warehouse_id |@M_Warehouse_ID@ |
|
||||
|salesrep_id |@Ref=AD_User[Name='GardenAdmin'].AD_User_ID |
|
||||
|movementtype |V+ |
|
||||
|*Save* | |
|
||||
|
||||
Create material receipt line
|
||||
|
||||
!|Create Record|
|
||||
|*Table* |M_InOutLine |
|
||||
|m_inout_id |@m_inout.m_inout_id@ |
|
||||
|ad_org_id |@m_inout.AD_Org_ID@ |
|
||||
|m_product_id|@m_product.M_Product_ID@|
|
||||
|qtyentered |50 |
|
||||
|c_uom_id |@m_product.c_uom_id@|
|
||||
|m_locator_id|@Ref=M_Locator[M_Warehouse_ID=@M_Warehouse_ID@ AND IsDefault='Y'].M_Locator_ID|
|
||||
|*Save* | |
|
||||
|
||||
Complete the material receipt
|
||||
|
||||
!|Run Process|
|
||||
|*ProcessValue*|M_InOut Process |
|
||||
|*RecordID* |@M_InOut.M_InOut_ID@|
|
||||
|*DocAction* |CO |
|
||||
|*Run* | |
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit>true</Edit>
|
||||
<Files>true</Files>
|
||||
<Properties>true</Properties>
|
||||
<RecentChanges>true</RecentChanges>
|
||||
<Refactor>true</Refactor>
|
||||
<Search>true</Search>
|
||||
<Versions>true</Versions>
|
||||
<WhereUsed>true</WhereUsed>
|
||||
</properties>
|
|
@ -0,0 +1,8 @@
|
|||
!|Create Record|
|
||||
|*Table* |M_Product|
|
||||
|Name |@RandomName@|
|
||||
|Value |@RandomName@|
|
||||
|C_UOM_ID |@Ref=C_UOM[Name='Each'].C_UOM_ID|
|
||||
|M_Product_Category_ID |@Ref=M_Product_Category[Name='Standard' and AD_Client_ID=@AD_Client_ID@].M_Product_Category_ID|
|
||||
|C_TaxCategory_ID |@Ref=C_TaxCategory[Name='Standard' and AD_Client_ID=@AD_Client_ID@].C_TaxCategory_ID|
|
||||
|*Save* | |
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit/>
|
||||
<Files/>
|
||||
<Help/>
|
||||
<Properties/>
|
||||
<RecentChanges/>
|
||||
<Refactor/>
|
||||
<Search/>
|
||||
<Suites/>
|
||||
<Test/>
|
||||
<Versions/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,8 @@
|
|||
!|Create Record|
|
||||
|*Table* |M_ProductPrice|
|
||||
|M_PriceList_Version_ID |@Ref=M_PriceList_Version[IsActive='Y' AND M_PriceList_ID=(select m_pricelist_id from m_pricelist where name='Purchase')].M_PriceList_Version_ID|
|
||||
|M_Product_ID |@m_product.m_product_id@|
|
||||
|PriceLimit | 0 |
|
||||
|PriceList | 0 |
|
||||
|PriceStd | 0 |
|
||||
|*Save* | |
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit>true</Edit>
|
||||
<Files>true</Files>
|
||||
<Properties>true</Properties>
|
||||
<RecentChanges>true</RecentChanges>
|
||||
<Refactor>true</Refactor>
|
||||
<Search>true</Search>
|
||||
<Versions>true</Versions>
|
||||
<WhereUsed>true</WhereUsed>
|
||||
</properties>
|
|
@ -0,0 +1,41 @@
|
|||
Create purchase order
|
||||
|
||||
!|Read Record|
|
||||
|*Table* |C_BPartner |
|
||||
|c_bpartner_id |@Ref=C_BPartner[Name='Patio Fun, Inc.'].c_bpartner_id|
|
||||
|*Read* | |
|
||||
|
||||
!|Create Record|
|
||||
|*Table* |C_Order |
|
||||
|ad_org_id |@AD_Org_ID@ |
|
||||
|c_doctypetarget_id |@Ref=C_DocType[Name='Purchase Order'].C_DocType_ID|
|
||||
|issotrx |N |
|
||||
|salesrep_id |@Ref=AD_User[Name='GardenAdmin'].AD_User_ID|
|
||||
|c_bpartner_id |@c_bpartner.c_bpartner_id@ |
|
||||
|c_bpartner_location_id|@Ref=C_BPartner_Location[C_BPartner_ID=@c_bpartner.c_bpartner_id@].C_BPartner_Location_ID |
|
||||
|paymentrule |B |
|
||||
|m_warehouse_id |@M_Warehouse_ID@ |
|
||||
|m_pricelist_id |@Ref=M_PriceList[Name='Purchase'].M_PriceList_ID |
|
||||
|ad_user_id |@Ref=AD_User[Name='GardenAdmin'].AD_User_ID |
|
||||
|*Save* | |
|
||||
|
||||
Create purchase order line
|
||||
|
||||
!|Create Record|
|
||||
|*Table* |C_OrderLine |
|
||||
|c_order_id |@C_order.c_Order_id@ |
|
||||
|ad_org_id |@C_Order.AD_Org_ID@ |
|
||||
|m_product_id|@M_Product.M_Product_ID@|
|
||||
|qtyentered |50 |
|
||||
|qtyordered |50 |
|
||||
|priceactual |10 |
|
||||
|c_uom_id |@m_product.c_uom_id@|
|
||||
|*Save* | |
|
||||
|
||||
Complete the purchase order
|
||||
|
||||
!|Run Process|
|
||||
|*ProcessValue*|C_Order Process |
|
||||
|*RecordID* |@C_Order.C_Order_ID@|
|
||||
|*DocAction* |CO |
|
||||
|*Run* | |
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit>true</Edit>
|
||||
<Files>true</Files>
|
||||
<Properties>true</Properties>
|
||||
<RecentChanges>true</RecentChanges>
|
||||
<Refactor>true</Refactor>
|
||||
<Search>true</Search>
|
||||
<Test/>
|
||||
<Versions>true</Versions>
|
||||
<WhereUsed>true</WhereUsed>
|
||||
</properties>
|
|
@ -0,0 +1,8 @@
|
|||
!|Login|
|
||||
|User |GardenAdmin|
|
||||
|Password |GardenAdmin|
|
||||
|AD_Client_ID|@Ref=AD_Client[Value='GardenWorld'].AD_Client_ID|
|
||||
|AD_Role_id |@Ref=AD_Role[Name='GardenWorld Admin'].AD_Role_ID|
|
||||
|AD_Org_ID |@Ref=AD_Org[Name='HQ'].AD_Org_ID|
|
||||
|M_Warehouse_ID|@Ref=M_Warehouse[Name='HQ Warehouse'].M_Warehouse_ID|
|
||||
|*Login* | |
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit/>
|
||||
<Files/>
|
||||
<Help/>
|
||||
<Properties/>
|
||||
<RecentChanges/>
|
||||
<Refactor/>
|
||||
<Search/>
|
||||
<Suites/>
|
||||
<Test/>
|
||||
<Versions/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,2 @@
|
|||
!|Set Variable|
|
||||
|@RandomName@ |@random_string(TestAvg-,,4)|
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit/>
|
||||
<Files/>
|
||||
<Help/>
|
||||
<Properties/>
|
||||
<RecentChanges/>
|
||||
<Refactor/>
|
||||
<Search/>
|
||||
<Suites/>
|
||||
<Test/>
|
||||
<Versions/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,2 @@
|
|||
!|Assert Variable|
|
||||
|I|@SQL=select costingmethod from c_acctschema where c_acctschema_id = (select c_acctschema1_id from ad_clientinfo where ad_client_id=@AD_Client_ID@)|
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit/>
|
||||
<Files/>
|
||||
<Help/>
|
||||
<Properties/>
|
||||
<RecentChanges/>
|
||||
<Refactor/>
|
||||
<Search/>
|
||||
<Suites/>
|
||||
<Test/>
|
||||
<Versions/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1 @@
|
|||
!contents -R2 -g -p -f -h
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit>true</Edit>
|
||||
<Files>true</Files>
|
||||
<Properties>true</Properties>
|
||||
<RecentChanges>true</RecentChanges>
|
||||
<Refactor>true</Refactor>
|
||||
<Search>true</Search>
|
||||
<Versions>true</Versions>
|
||||
<WhereUsed>true</WhereUsed>
|
||||
</properties>
|
|
@ -0,0 +1 @@
|
|||
!include UserGuide.FitNesse
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit>true</Edit>
|
||||
<Files>true</Files>
|
||||
<LastModified>20090326123836</LastModified>
|
||||
<Properties>true</Properties>
|
||||
<RecentChanges>true</RecentChanges>
|
||||
<Refactor>true</Refactor>
|
||||
<Search>true</Search>
|
||||
<Versions>true</Versions>
|
||||
<WhereUsed>true</WhereUsed>
|
||||
<saveId>1238089116471</saveId>
|
||||
<ticketId>3692661061657342165</ticketId>
|
||||
</properties>
|
|
@ -0,0 +1,2 @@
|
|||
|!style_pass(.)|PageOne|PageTwo|
|
||||
|!style_fail(.)|PageOne's Stuff|PageTwo's Stuff|
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit/>
|
||||
<Files/>
|
||||
<Help/>
|
||||
<Properties/>
|
||||
<RecentChanges/>
|
||||
<Refactor/>
|
||||
<Search/>
|
||||
<Suites/>
|
||||
<Test/>
|
||||
<Versions/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1 @@
|
|||
This page is read-protected.
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit/>
|
||||
<Files/>
|
||||
<Help/>
|
||||
<Properties/>
|
||||
<RecentChanges/>
|
||||
<Refactor/>
|
||||
<Search/>
|
||||
<Suites/>
|
||||
<Test/>
|
||||
<Versions/>
|
||||
<WhereUsed/>
|
||||
<secure-read/>
|
||||
</properties>
|
|
@ -0,0 +1 @@
|
|||
great grand child page one
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Files/>
|
||||
<LastModified>20060717210017</LastModified>
|
||||
<RecentChanges/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,3 @@
|
|||
grand child page one
|
||||
|
||||
!contents
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Files/>
|
||||
<LastModified>20060717210017</LastModified>
|
||||
<RecentChanges/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,3 @@
|
|||
child page one
|
||||
|
||||
!contents
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Files/>
|
||||
<LastModified>20060717210016</LastModified>
|
||||
<RecentChanges/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,3 @@
|
|||
child page three
|
||||
|
||||
!contents
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Files/>
|
||||
<LastModified>20060717210018</LastModified>
|
||||
<RecentChanges/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1 @@
|
|||
grand child page two
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Files/>
|
||||
<LastModified>20060717210019</LastModified>
|
||||
<RecentChanges/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,3 @@
|
|||
child page two
|
||||
|
||||
!contents
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Files/>
|
||||
<LastModified>20060717210019</LastModified>
|
||||
<RecentChanges/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,7 @@
|
|||
Here are some characters that make use of the unicode character set. They were gathered from wikipedia.
|
||||
japanese: メインページ
|
||||
icelandic: Forsíða
|
||||
ukranian: Головна стаття
|
||||
thai: หน้าหลัก
|
||||
greek: Κύρια Σελίδα
|
||||
arabic: الصفحة الرئيسية
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Files/>
|
||||
<LastModified>20060717210020</LastModified>
|
||||
<RecentChanges/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,7 @@
|
|||
!c !1 Sample Wiki
|
||||
!c This subwiki is used in the SuiteAcceptanceTests.SuiteWikiImportTests test suite.
|
||||
|
||||
^ChildPageOne
|
||||
^ChildPageTwo
|
||||
^ChildPageThree
|
||||
^ChildWithUnicode
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Files/>
|
||||
<LastModified>20060717210015</LastModified>
|
||||
<RecentChanges/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit>true</Edit>
|
||||
<Files>true</Files>
|
||||
<Properties>true</Properties>
|
||||
<RecentChanges>true</RecentChanges>
|
||||
<Refactor>true</Refactor>
|
||||
<Search>true</Search>
|
||||
<Versions>true</Versions>
|
||||
<WhereUsed>true</WhereUsed>
|
||||
</properties>
|
|
@ -0,0 +1 @@
|
|||
The following text must be here:''You have reached Child One.''
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Files/>
|
||||
<LastModified>20060717210025</LastModified>
|
||||
<RecentChanges/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,3 @@
|
|||
This page has an alias widget that links to a non existent page
|
||||
|
||||
[[link][NonExistentPage]]
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Files/>
|
||||
<LastModified>20060717210025</LastModified>
|
||||
<RecentChanges/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,3 @@
|
|||
This page contains an alias link to a non existent sub page.
|
||||
|
||||
[[link][^NonExistentSubPage]]
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Files/>
|
||||
<LastModified>20060717210025</LastModified>
|
||||
<RecentChanges/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1 @@
|
|||
This page: .FitNesse.SuiteAcceptanceTests.AcceptanceTestPage.DoesNotExist.
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Files/>
|
||||
<LastModified>20060717210026</LastModified>
|
||||
<RecentChanges/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,3 @@
|
|||
This page has a link to a non existent sub page.
|
||||
|
||||
.FitNesse.SuiteAcceptanceTests.AcceptanceTestPage.ChildWithSubPageLinkToNonExistentPage.NonExistentSubPage
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Files/>
|
||||
<LastModified>20060717210026</LastModified>
|
||||
<RecentChanges/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1 @@
|
|||
the included page 00bF
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Files/>
|
||||
<LastModified>20060717210026</LastModified>
|
||||
<RecentChanges/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,2 @@
|
|||
Child Including Page
|
||||
!include .FitNesse.SuiteAcceptanceTests.AcceptanceTestPage.IncludedPage
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Files/>
|
||||
<LastModified>20060717210027</LastModified>
|
||||
<RecentChanges/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,2 @@
|
|||
!include .FitNesse.SuiteAcceptanceTests.AcceptanceTestPage.IncludedPage
|
||||
.FitNesse.SuiteAcceptanceTests.AcceptanceTestPage.IncludingPage.ChildIncludingPage
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Files/>
|
||||
<LastModified>20060717210027</LastModified>
|
||||
<RecentChanges/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,10 @@
|
|||
This page is used as a target for some of the FitNesse acceptance tests. Don't delete it or any of it's children.
|
||||
|
||||
.FitNesse.SuiteAcceptanceTests.AcceptanceTestPage.ChildOne
|
||||
.FitNesse.SuiteAcceptanceTests.AcceptanceTestPage.ChildWithLinkToNonExistentPage
|
||||
.FitNesse.SuiteAcceptanceTests.AcceptanceTestPage.ChildWithSubPageLinkToNonExistentPage
|
||||
.FitNesse.SuiteAcceptanceTests.AcceptanceTestPage.ChildWithAliasLinkToNonExistentPage
|
||||
.FitNesse.SuiteAcceptanceTests.AcceptanceTestPage.ChildWithAliasLinkToNonExistentSubPage
|
||||
.FitNesse.SuiteAcceptanceTests.AcceptanceTestPage.IncludedPage
|
||||
.FitNesse.SuiteAcceptanceTests.AcceptanceTestPage.IncludingPage
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Files/>
|
||||
<LastModified>20060717210024</LastModified>
|
||||
<RecentChanges/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Files/>
|
||||
<LastModified>20060717210028</LastModified>
|
||||
<RecentChanges/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,2 @@
|
|||
[[!-FitNesse's-! own acceptance test suite][.FitNesse.SuiteAcceptanceTests]] | [[Front Page][.FrontPage]] | [[User Guide][.FitNesse.UserGuide]]
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit/>
|
||||
<Files/>
|
||||
<Help></Help>
|
||||
<Normal/>
|
||||
<Properties/>
|
||||
<RecentChanges/>
|
||||
<Refactor/>
|
||||
<Search/>
|
||||
<Suites></Suites>
|
||||
<Versions/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Files/>
|
||||
<LastModified>20060717210028</LastModified>
|
||||
<Properties/>
|
||||
<RecentChanges/>
|
||||
<Search/>
|
||||
<Versions/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,97 @@
|
|||
!|scenario|given page|page|with content|content|
|
||||
|create page|@page|with content|@content|
|
||||
|$IT=|echo|@page|
|
||||
|
||||
!|scenario|given page|page|
|
||||
|given page|@page|with content|nothing|
|
||||
|
||||
!|scenario|given test page|page|
|
||||
|given page|@page|
|
||||
|make|@page|a test page|
|
||||
|
||||
!|scenario|given slim test page|page|
|
||||
|given page|@page|with content|!define TEST_SYSTEM {slim}|
|
||||
|make|@page|a test page|
|
||||
|
||||
|scenario|page|source|should have link to|target|
|
||||
|check|request page|@source|200|
|
||||
|ensure|content contains|<a href="@target">|
|
||||
|$IT=|echo|@source|
|
||||
|
||||
!|scenario|it should have link to|target|
|
||||
|page|$IT|should have link to|@target|
|
||||
|
||||
!|scenario|and it should have link to|target|
|
||||
|page|$IT|should have link to|@target|
|
||||
|
||||
!|scenario|page|source|should have creating link to|target|
|
||||
|check|request page|@source|200|
|
||||
|ensure|content contains|@target<a title="create page" href="@target?edit&nonExistent=true">[?]</a>|
|
||||
|
||||
!|scenario|it should have creating link to|target|
|
||||
|page|$IT|should have creating link to|@target|
|
||||
|
||||
!|scenario|page|source|should contain|text|
|
||||
|check|request page|@source|200|
|
||||
|ensure|content contains|@text|
|
||||
|show|content|
|
||||
|
||||
!|scenario|page|source|should not contain|text|
|
||||
|check|request page|@source|200|
|
||||
|reject|content contains|@text|
|
||||
|show|content|
|
||||
|
||||
!|scenario|page|source|should match|text|
|
||||
|check|request page|@source|200|
|
||||
|ensure|content matches|@text|
|
||||
|show|content|
|
||||
|
||||
!|scenario|it should contain|text|
|
||||
|page|$IT|should contain|@text|
|
||||
|
||||
!|scenario|it should not contain|text|
|
||||
|page|$IT|should not contain|@text|
|
||||
|
||||
!|scenario|it should contain|text|in line|symbol|
|
||||
|check|request page|$IT|200|
|
||||
|$@symbol=|line number containing|@text|
|
||||
|
||||
!|scenario|it should match|text|
|
||||
|page|$IT|should match|@text|
|
||||
|
||||
!|scenario|test results for page|source|should contain|text|
|
||||
|check|request page|@source?test|200|
|
||||
|ensure|content contains|@text|
|
||||
|show|content|
|
||||
|
||||
!|scenario|its test results should contain|text|
|
||||
|test results for page|$IT|should contain|@text|
|
||||
|
||||
!|scenario|test ressults for page|source|should not contain|text|
|
||||
|check|request page|@source?test|200|
|
||||
|reject|content contains|@text|
|
||||
|show|content|
|
||||
|
||||
!|scenario|and should contain|text|
|
||||
|ensure|content contains|@text|
|
||||
|show|content|
|
||||
|
||||
!|scenario|and should match|text|
|
||||
|ensure|content matches|@text|
|
||||
|show|content|
|
||||
|
||||
!|scenario|and should not contain|text|
|
||||
|reject|content contains|@text|
|
||||
|show|content|
|
||||
|
||||
!|scenario|widget|wikiText|should render|htmlText|
|
||||
|create page|WidgetPage|with content|@wikiText|
|
||||
|check|request page|WidgetPage|200|
|
||||
|ensure|content matches|@htmlText|
|
||||
|show|content|
|
||||
|
||||
!|scenario|the line|after|should come after|before|
|
||||
|check|echo int|$@before|< $@after|
|
||||
|
||||
!|scenario|pass|
|
||||
|check|echo|pass|pass|
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit>true</Edit>
|
||||
<Files>true</Files>
|
||||
<Properties>true</Properties>
|
||||
<RecentChanges>true</RecentChanges>
|
||||
<Refactor>true</Refactor>
|
||||
<Search>true</Search>
|
||||
<Versions>true</Versions>
|
||||
<WhereUsed>true</WhereUsed>
|
||||
<saveId>1234380859396</saveId>
|
||||
<ticketId>7171568299669753244</ticketId>
|
||||
</properties>
|
|
@ -0,0 +1,4 @@
|
|||
!|Import|
|
||||
|fitnesse.fixtures|
|
||||
|
||||
!|SetUp|
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Files/>
|
||||
<LastModified>20060717210029</LastModified>
|
||||
<LastModifyingUser>docs</LastModifyingUser>
|
||||
<Properties/>
|
||||
<RecentChanges/>
|
||||
<Search/>
|
||||
<Versions/>
|
||||
<WhereUsed/>
|
||||
<saveId>1122839767051</saveId>
|
||||
<ticketId>2319759440361385703</ticketId>
|
||||
</properties>
|
|
@ -0,0 +1,17 @@
|
|||
!|script|
|
||||
|given user|Aladdin|with password|open sesame|
|
||||
|given page|FrontPage|
|
||||
|
||||
!note Make sure saveProperties is last, because it clears the write-lock
|
||||
!|operation is authenticated|
|
||||
|operation|
|
||||
|purgeHistory|
|
||||
|testHistory|
|
||||
|pageHistory|
|
||||
|shutdown|
|
||||
|renamePage|
|
||||
|deletePage|
|
||||
|movePage|
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit>true</Edit>
|
||||
<Files>true</Files>
|
||||
<Properties>true</Properties>
|
||||
<RecentChanges>true</RecentChanges>
|
||||
<Refactor>true</Refactor>
|
||||
<Search>true</Search>
|
||||
<Test/>
|
||||
<Versions>true</Versions>
|
||||
<WhereUsed>true</WhereUsed>
|
||||
</properties>
|
|
@ -0,0 +1,52 @@
|
|||
!|scenario|it should be readable with no authentication|
|
||||
|check|request page|$IT|200|
|
||||
|
||||
!|scenario|it should not be readable with no authentication|
|
||||
|check|request page|$IT|401|
|
||||
|
||||
!|scenario|it should be readable by user|user|password|password|
|
||||
|check|request page|$IT|authenticated by user|@user|and password|@password|200|
|
||||
|
||||
!|scenario|it should not be readable by user|user|password|password|
|
||||
|check|request page|$IT|authenticated by user|@user|and password|@password|401|
|
||||
|
||||
!|scenario|given read locked page|page|
|
||||
|create page|@page|with authentication|secure-read=true|
|
||||
|$IT=|echo|@page|
|
||||
|
||||
!|scenario|given write locked page|page|
|
||||
|create page|@page|with authentication|secure-write=true|
|
||||
|$IT=|echo|@page|
|
||||
|
||||
!|scenario|given test locked page|page|
|
||||
|create page|@page|with authentication|secure-test=true|
|
||||
|$IT=|echo|@page|
|
||||
|
||||
!|scenario|directory|dir|should not be readable with no authentication|
|
||||
|check|request page|@dir|401|
|
||||
|
||||
!|scenario|directory|dir|should not be readable by user|user|password|password|
|
||||
|check|request page|@dir|authenticated by user|@user|and password|@password|401|
|
||||
|
||||
!|scenario|directory|dir|should be readable by user|user|password|password|
|
||||
|check|request page|@dir|authenticated by user|@user|and password|@password|200|
|
||||
|
||||
!|scenario|it should be not readable with no authentication|
|
||||
|check|request page|$IT|401|
|
||||
|
||||
!|scenario|it should not be readable by user|user|password|password|
|
||||
|check|request page|$IT|authenticated by user|@user|and password|@password|401|
|
||||
|
||||
!|scenario|it should be readable by user|user|password|password|
|
||||
|check|request page|$IT|authenticated by user|@user|and password|@password|200|
|
||||
|
||||
!|scenario|operation|operation|with bad authentication should fail|
|
||||
|check|request page|$IT?@operation|authenticated by user|Aladdin|and password|open please|401|
|
||||
|
||||
!|scenario|operation|operation|with good authentication should not fail|
|
||||
|check not|request page|$IT?@operation|authenticated by user|Aladdin|and password|open sesame|401|
|
||||
|
||||
!|scenario|operation|operation|is authenticated|
|
||||
|operation|@operation|with bad authentication should fail|
|
||||
|operation|@operation|with good authentication should not fail|
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit>true</Edit>
|
||||
<Files>true</Files>
|
||||
<Properties>true</Properties>
|
||||
<RecentChanges>true</RecentChanges>
|
||||
<Refactor>true</Refactor>
|
||||
<Search>true</Search>
|
||||
<Versions>true</Versions>
|
||||
<WhereUsed>true</WhereUsed>
|
||||
</properties>
|
|
@ -0,0 +1,22 @@
|
|||
!|script|
|
||||
|given user|Aladdin|with password|open sesame|
|
||||
|given read locked page|FrontPage|
|
||||
|
||||
!|operation is authenticated|
|
||||
|operation|
|
||||
|properties|
|
||||
|edit|
|
||||
|search|
|
||||
|versions|
|
||||
|viewVersion|
|
||||
|names|
|
||||
|executeSearchProperties|
|
||||
|whereUsed|
|
||||
|refactor|
|
||||
|pageData|
|
||||
|raw|
|
||||
|rss|
|
||||
|importAndView|
|
||||
|getPage|
|
||||
|packet|
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit/>
|
||||
<Files/>
|
||||
<Help/>
|
||||
<Properties/>
|
||||
<RecentChanges/>
|
||||
<Refactor/>
|
||||
<Search/>
|
||||
<Suites/>
|
||||
<Test/>
|
||||
<Versions/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,19 @@
|
|||
!define PATHS {
|
||||
!path classes
|
||||
!path fitnesse.jar
|
||||
!define TEST_SYSTEM (slim)
|
||||
!define SLIM_PORT (9000)
|
||||
}
|
||||
|
||||
!|script|
|
||||
|given user|Aladdin|with password|open sesame|
|
||||
|given page|ParentPage|with content|${PATHS}|
|
||||
|given test locked page|ParentPage.AwkwardTurtle|
|
||||
|
||||
!|operation is authenticated|
|
||||
|operation|
|
||||
|suite|
|
||||
|test|
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit/>
|
||||
<Files/>
|
||||
<Help/>
|
||||
<Properties/>
|
||||
<RecentChanges/>
|
||||
<Refactor/>
|
||||
<Search/>
|
||||
<Suites/>
|
||||
<Test/>
|
||||
<Versions/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,13 @@
|
|||
!|script|
|
||||
|given user|Aladdin|with password|open sesame|
|
||||
|given write locked page|FrontPage|
|
||||
|
||||
!note Make sure saveProperties is last, because it clears the write-lock
|
||||
!|operation is authenticated|
|
||||
|operation|
|
||||
|addChild|
|
||||
|saveData|
|
||||
|rollback|
|
||||
|saveProperties|
|
||||
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit>true</Edit>
|
||||
<Files>true</Files>
|
||||
<Properties>true</Properties>
|
||||
<RecentChanges>true</RecentChanges>
|
||||
<Refactor>true</Refactor>
|
||||
<Search>true</Search>
|
||||
<Test/>
|
||||
<Versions>true</Versions>
|
||||
<WhereUsed>true</WhereUsed>
|
||||
</properties>
|
|
@ -0,0 +1,6 @@
|
|||
!include <SuiteAcceptanceTests.SetUp
|
||||
|
||||
|Library|
|
||||
|echo fixture|
|
||||
|page driver|
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit>true</Edit>
|
||||
<Files>true</Files>
|
||||
<Properties>true</Properties>
|
||||
<RecentChanges>true</RecentChanges>
|
||||
<Refactor>true</Refactor>
|
||||
<Search>true</Search>
|
||||
<Versions>true</Versions>
|
||||
<WhereUsed>true</WhereUsed>
|
||||
</properties>
|
|
@ -0,0 +1,9 @@
|
|||
Make a request for an insecure page with out supplying any credentials. It should succeed.
|
||||
|
||||
!|script|
|
||||
|given user|Aladdin|with password|open sesame|
|
||||
|given page|FrontPage|
|
||||
|it should be readable with no authentication|
|
||||
|it should be readable by user|Aladdin|password|open sesame|
|
||||
|it should be readable by user|Aladdin|password|open please|
|
||||
|it should be readable by user|Bob|password|xyzzy|
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit/>
|
||||
<Files/>
|
||||
<Help/>
|
||||
<Properties/>
|
||||
<RecentChanges/>
|
||||
<Refactor/>
|
||||
<Search/>
|
||||
<Suites/>
|
||||
<Test/>
|
||||
<Versions/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,9 @@
|
|||
Children of a page who'se 'secure-read' property is set, also require authentication in order to read. The 'secure-read' property acts as though it were inherited by the children pages.
|
||||
|
||||
!|script|
|
||||
|given user|Aladdin|with password|open sesame|
|
||||
|given read locked page|ParentPage|
|
||||
|given page|ParentPage.ChildPage|
|
||||
|it should not be readable with no authentication|
|
||||
|it should not be readable by user|Aladdin|password|open please|
|
||||
|it should be readable by user|Aladdin|password|open sesame|
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit/>
|
||||
<Files/>
|
||||
<Help/>
|
||||
<Properties/>
|
||||
<RecentChanges/>
|
||||
<Refactor/>
|
||||
<Search/>
|
||||
<Suites/>
|
||||
<Test/>
|
||||
<Versions/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,12 @@
|
|||
!|FileSection|setup|
|
||||
|
||||
Requesting a file from the ''files''' directory does not require authentication, but requesting a directory does.
|
||||
A response with status 401 will be received signifying lack of authentication.
|
||||
|
||||
!|script|
|
||||
|given user|Aladdin|with password|open sesame|
|
||||
|directory|files/|should not be readable with no authentication|
|
||||
|directory|files/|should not be readable by user|Aladdin|password|open please|
|
||||
|directory|files/|should be readable by user|Aladdin|password|open sesame|
|
||||
|
||||
!|FileSection|teardown|
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit/>
|
||||
<Files/>
|
||||
<Help/>
|
||||
<Properties/>
|
||||
<RecentChanges/>
|
||||
<Refactor/>
|
||||
<Search/>
|
||||
<Suites/>
|
||||
<Test/>
|
||||
<Versions/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,27 @@
|
|||
If we try to test a suite page that is marked secure-test, we'll have to authenticate.
|
||||
A response with status 401 will be received signifying lack of authentication.
|
||||
|
||||
First setup the Authentication module.
|
||||
!|Authenticator Setup|
|
||||
|username|password|status?|
|
||||
|Aladdin|open sesame||
|
||||
|
||||
Create a page to be tested.
|
||||
!|Page creator.|
|
||||
|Page name.|page attributes|valid?|
|
||||
|FrontPage |secure-test=true|true|
|
||||
|
||||
Now request a page. We should get a 401 since we didn't suply any credentials.
|
||||
!|Response Requester.|
|
||||
|uri|status?|
|
||||
|FrontPage?suite |401 |
|
||||
|
||||
When we supply bad credintials we get a 401.
|
||||
!|Response Requester.|
|
||||
|uri|username|password|status?|
|
||||
|FrontPage?suite |Aladdin|open please|401|
|
||||
|
||||
Proper credentials give a successfull response.
|
||||
!|Response Requester.|
|
||||
|uri|username|password|status?|
|
||||
|FrontPage?suite |Aladdin|open sesame|200|
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Files/>
|
||||
<LastModified>20081020135120</LastModified>
|
||||
<Properties/>
|
||||
<RecentChanges/>
|
||||
<Refactor/>
|
||||
<Search/>
|
||||
<Test/>
|
||||
<Versions/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,27 @@
|
|||
If we try to test a page that is marked secure-test, we'll have to authenticate.
|
||||
A response with status 401 will be received signifying lack of authentication.
|
||||
|
||||
First setup the Authentication module.
|
||||
!|Authenticator Setup|
|
||||
|username|password|status?|
|
||||
|Aladdin|open sesame||
|
||||
|
||||
Create a page to be tested.
|
||||
!|Page creator.|
|
||||
|Page name.|page attributes|valid?|
|
||||
|FrontPage |secure-test=true|true|
|
||||
|
||||
Now request a page. We should get a 401 since we didn't suply any credentials.
|
||||
!|Response Requester.|
|
||||
|uri|status?|
|
||||
|FrontPage?test |401 |
|
||||
|
||||
When we supply bad credintials we get a 401.
|
||||
!|Response Requester.|
|
||||
|uri|username|password|status?|
|
||||
|FrontPage?test |Aladdin|open please|401|
|
||||
|
||||
Proper credentials give a successfull response.
|
||||
!|Response Requester.|
|
||||
|uri|username|password|status?|
|
||||
|FrontPage?test |Aladdin|open sesame|200|
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit/>
|
||||
<Files/>
|
||||
<Help></Help>
|
||||
<Properties/>
|
||||
<RecentChanges/>
|
||||
<Refactor/>
|
||||
<Search/>
|
||||
<Suites></Suites>
|
||||
<Test/>
|
||||
<Versions/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,5 @@
|
|||
!define TEST_SYSTEM {slim}
|
||||
!contents -g -h -p
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0"?>
|
||||
<properties>
|
||||
<Edit/>
|
||||
<Files/>
|
||||
<Help/>
|
||||
<Properties/>
|
||||
<RecentChanges/>
|
||||
<Refactor/>
|
||||
<Search/>
|
||||
<Suite/>
|
||||
<Suites/>
|
||||
<Versions/>
|
||||
<WhereUsed/>
|
||||
</properties>
|
|
@ -0,0 +1,33 @@
|
|||
!|scenario|the edit response should contain|contents|
|
||||
|check|request page|$IT?edit|200|
|
||||
|ensure|content contains|@contents|
|
||||
|show|content|
|
||||
|
||||
!|scenario|attempt to edit|page |
|
||||
|check |request page |@page?edit|200|
|
||||
|
||||
!|scenario|save page|page|with contents|contents|
|
||||
|check|request page save|@page|with contents|@contents|303|
|
||||
|$IT=|echo|@page|
|
||||
|
||||
!|scenario|save page|page|with contents|contents|by user|user|
|
||||
|check|request page save|@page|with contents|@contents|by user|@user|and password|empty|303|
|
||||
|$IT=|echo|@page|
|
||||
|
||||
!|scenario|save page|page|by user|user|
|
||||
|check|request page save|@page|with contents|empty|by user|@user|and password|empty|303|
|
||||
|$IT=|echo|@page|
|
||||
|
||||
!|scenario|save page|page|
|
||||
|save page|@page|with contents|empty|
|
||||
|
||||
!|scenario|it's last modified by should be|user|
|
||||
|check|last modified of page|$IT|@user|
|
||||
|
||||
!|scenario|it's versions should contain|content|
|
||||
|page|$IT?versions|should contain|@content|
|
||||
|
||||
|
||||
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue