Hi,
I've got 2 problems when creating an order. If you purchase an order, and go to "Quick Lookup" to find products, you are redirected to this page : https://localhost:8443/ordermgr/control/LookupBulkAddSupplierProducts?productId= On this page, the title of the form doesn't appear correctly, in html source code, we can see that there is : ------ <!-- Begin Section Widget --> <div class="screenlet"><div class="screenlet-body"> <!-- Begin Template component://order/webapp/ordermgr/entry/OrderEntryCatalogTabBar.ftl --> <div class="screenlet-title-bar"> ------ the problem is about screenlet-body, without it, and only it, it appears correctly There has been some work on pagination, so I think that the second problem is related. This problem seems to be there since about the 1st november and is on every theme. On the same page as before, there is no "next button". In orderEntryForms.xml#LookupBulkAddSupplierProducts (the last form of the file) there is a view-size="5" if you change this value, you can see that there is more than 5 products (14 I guess). A groovy is called (lookupBulkAddSupplierProducts.groovy), containing these lines : ------ if (newProductList.size() >= maxRows) { // We've got enough results to display, keep going to get the result size but skip the heavy stuff newProductList.add(null); } else { ------ As I don't know how to help more, or if I expained it clearfully, please tell me what next should I do. For example, I could open 2 jira, and send some screenshots if needed. Btw, here is a selenium test that should go to the page I'm talking about. Regards, Matthieu. purchaseorder.html : <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head profile="http://selenium-ide.openqa.org/profiles/test-case"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="selenium.base" href="" /> <title>PurchaseOrderAndReception</title> </head> <body> <table cellpadding="1" cellspacing="1" border="1"> <thead> <tr><td rowspan="1" colspan="3">PurchaseOrderAndReception <ul> <li>Begin of standard login procedure</li> <li>End of standard login procedure</li> <li>Begin Purchase Order And Reception</li> <li>Product(s) selection</li> <li>Product(s) quantity modification and recalculate order</li> <li>Order approval</li> <li>Order reception</li> <li>WebStoreWarehouse selection</li> <li>Stock control</li> <li>End Purchase Order And Reception</li> </ul> </td></tr> </thead><tbody> <!-- Begin of standard login procedure --> <tr> <td>echo</td> <td><h3>Begin of standard login procedure</h3></td> <td></td> </tr> <tr> <td>open</td> <td>https://localhost:8443/ordermgr/control/logout</td> <td></td> </tr> <tr> <td>open</td> <td>https://localhost:8443/ordermgr/control/setSessionLocale?newLocale=en</td> <td></td> </tr> <tr> <td>type</td> <td>USERNAME</td> <td>admin</td> </tr> <tr> <td>type</td> <td>PASSWORD</td> <td>ofbiz</td> </tr> <tr> <td>clickAndWait</td> <td>//input[@value='Login']</td> <td></td> </tr> <tr> <td>echo</td> <td>End of standard login procedure</td> <td></td> </tr> <!-- End of standard login procedure --> <!-- Order creation --> <tr> <td>echo</td> <td>Begin Purchase Order And Reception</td> <td></td> </tr> <tr> <td>open</td> <td>https://localhost:8443/ordermgr/control/main</td> <td></td> </tr> <tr> <td>assertElementNotPresent</td> <td>//div[@class='content-messages errorMessage']</td> <td></td> </tr> <tr> <td>clickAndWait</td> <td>link=Order Entry</td> <td></td> </tr> <tr> <td>assertElementNotPresent</td> <td>//div[@class='content-messages errorMessage']</td> <td></td> </tr> <tr> <td>select</td> <td>supplierPartyId</td> <td>label=[DemoSupplier] - Demo Supplier</td> </tr> <tr> <td>assertElementNotPresent</td> <td>//div[@class='content-messages errorMessage']</td> <td></td> </tr> <tr> <td>clickAndWait</td> <td>//div[@id='content-main-section']/div[2]/div[1]/ul/li[2]/a</td> <td></td> </tr> <tr> <td>type</td> <td>orderName</td> <td>Purchase order and reception</td> </tr> <tr> <td>clickAndWait</td> <td>link=Continue</td> <td></td> </tr> <tr> <td>assertElementNotPresent</td> <td>//div[@class='content-messages errorMessage']</td> <td></td> </tr> <!-- Product(s) selection --> <tr> <td>clickAndWait</td> <td>link=Quick Lookup</td> <td></td> </tr> <tr> <td>assertElementNotPresent</td> <td>//div[@class='content-messages errorMessage']</td> <td></td> </tr> <tr> <td>type</td> <td>quantity_o_0</td> <td>1</td> </tr> <tr> <td>clickAndWait</td> <td>submitButton</td> <td></td> </tr> <tr> <td>assertElementNotPresent</td> <td>//div[@class='content-messages errorMessage']</td> <td></td> </tr> <tr> <td>clickAndWait</td> <td>link=Quick Lookup</td> <td></td> </tr> <tr> <td>assertElementNotPresent</td> <td>//div[@class='content-messages errorMessage']</td> <td></td> </tr> <tr> <td>type</td> <td>quantity_o_3</td> <td>6</td> </tr> <tr> <td>clickAndWait</td> <td>submitButton</td> <td></td> </tr> <tr> <td>assertElementNotPresent</td> <td>//div[@class='content-messages errorMessage']</td> <td></td> </tr> <tr> <td>clickAndWait</td> <td>link=Quick Lookup</td> <td></td> </tr> <tr> <td>clickAndWait</td> <td>link=Next</td> <td></td> </tr> </tbody></table> </body> </html> |
Hi Matthieu,
I did a quick check on #1. There is something wrong because the <div class="screenlet-title-bar"> shouldn't be contained in a <div class="screenlet-body"> tag but it should always be like this: <div class="screenlet"> <div class="screenlet-title-bar"> </div> <div class="screenlet-body"> </div> </div> So please it is better to open a JIRA. -Bruno 2009/11/9 Matthieu Bollot <[hidden email]>: > Hi, > > I've got 2 problems when creating an order. > > If you purchase an order, and go to "Quick Lookup" to find products, you > are redirected to this page : > https://localhost:8443/ordermgr/control/LookupBulkAddSupplierProducts?productId= > > On this page, the title of the form doesn't appear correctly, in html > source code, we can see that there is : > ------ > <!-- Begin Section Widget --> > <div class="screenlet"><div class="screenlet-body"> > <!-- Begin Template component://order/webapp/ordermgr/entry/OrderEntryCatalogTabBar.ftl --> > > <div class="screenlet-title-bar"> > ------ > the problem is about screenlet-body, without it, and only it, it appears correctly > > > There has been some work on pagination, so I think that the second > problem is related. This problem seems to be there since about the 1st > november and is on every theme. On the same page as before, there is no > "next button". > > In orderEntryForms.xml#LookupBulkAddSupplierProducts (the last form of > the file) there is a view-size="5" if you change this value, you can see > that there is more than 5 products (14 I guess). A groovy is called > (lookupBulkAddSupplierProducts.groovy), containing these lines : > ------ > if (newProductList.size() >= maxRows) { > // We've got enough results to display, keep going to get the > result size but skip the heavy stuff > newProductList.add(null); > } else { > ------ > > > As I don't know how to help more, or if I expained it clearfully, please > tell me what next should I do. For example, I could open 2 jira, and > send some screenshots if needed. > > Btw, here is a selenium test that should go to the page I'm talking > about. > > Regards, > Matthieu. > > > purchaseorder.html : > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> > <head profile="http://selenium-ide.openqa.org/profiles/test-case"> > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> > <link rel="selenium.base" href="" /> > <title>PurchaseOrderAndReception</title> > </head> > <body> > <table cellpadding="1" cellspacing="1" border="1"> > <thead> > <tr><td rowspan="1" colspan="3">PurchaseOrderAndReception > <ul> > <li>Begin of standard login procedure</li> > <li>End of standard login procedure</li> > <li>Begin Purchase Order And Reception</li> > <li>Product(s) selection</li> > <li>Product(s) quantity modification and recalculate order</li> > <li>Order approval</li> > <li>Order reception</li> > <li>WebStoreWarehouse selection</li> > <li>Stock control</li> > <li>End Purchase Order And Reception</li> > </ul> > </td></tr> > </thead><tbody> > <!-- Begin of standard login procedure --> > <tr> > <td>echo</td> > <td><h3>Begin of standard login procedure</h3></td> > <td></td> > </tr> > <tr> > <td>open</td> > <td>https://localhost:8443/ordermgr/control/logout</td> > <td></td> > </tr> > <tr> > <td>open</td> > > <td>https://localhost:8443/ordermgr/control/setSessionLocale?newLocale=en</td> > <td></td> > </tr> > <tr> > <td>type</td> > <td>USERNAME</td> > <td>admin</td> > </tr> > <tr> > <td>type</td> > <td>PASSWORD</td> > <td>ofbiz</td> > </tr> > <tr> > <td>clickAndWait</td> > <td>//input[@value='Login']</td> > <td></td> > </tr> > <tr> > <td>echo</td> > <td>End of standard login procedure</td> > <td></td> > </tr> > <!-- End of standard login procedure --> > <!-- Order creation --> > <tr> > <td>echo</td> > <td>Begin Purchase Order And Reception</td> > <td></td> > </tr> > <tr> > <td>open</td> > <td>https://localhost:8443/ordermgr/control/main</td> > <td></td> > </tr> > <tr> > <td>assertElementNotPresent</td> > <td>//div[@class='content-messages errorMessage']</td> > <td></td> > </tr> > <tr> > <td>clickAndWait</td> > <td>link=Order Entry</td> > <td></td> > </tr> > <tr> > <td>assertElementNotPresent</td> > <td>//div[@class='content-messages errorMessage']</td> > <td></td> > </tr> > <tr> > <td>select</td> > <td>supplierPartyId</td> > <td>label=[DemoSupplier] - Demo Supplier</td> > </tr> > <tr> > <td>assertElementNotPresent</td> > <td>//div[@class='content-messages errorMessage']</td> > <td></td> > </tr> > <tr> > <td>clickAndWait</td> > <td>//div[@id='content-main-section']/div[2]/div[1]/ul/li[2]/a</td> > <td></td> > </tr> > <tr> > <td>type</td> > <td>orderName</td> > <td>Purchase order and reception</td> > </tr> > <tr> > <td>clickAndWait</td> > <td>link=Continue</td> > <td></td> > </tr> > <tr> > <td>assertElementNotPresent</td> > <td>//div[@class='content-messages errorMessage']</td> > <td></td> > </tr> > <!-- Product(s) selection --> > <tr> > <td>clickAndWait</td> > <td>link=Quick Lookup</td> > <td></td> > </tr> > <tr> > <td>assertElementNotPresent</td> > <td>//div[@class='content-messages errorMessage']</td> > <td></td> > </tr> > <tr> > <td>type</td> > <td>quantity_o_0</td> > <td>1</td> > </tr> > <tr> > <td>clickAndWait</td> > <td>submitButton</td> > <td></td> > </tr> > <tr> > <td>assertElementNotPresent</td> > <td>//div[@class='content-messages errorMessage']</td> > <td></td> > </tr> > <tr> > <td>clickAndWait</td> > <td>link=Quick Lookup</td> > <td></td> > </tr> > <tr> > <td>assertElementNotPresent</td> > <td>//div[@class='content-messages errorMessage']</td> > <td></td> > </tr> > <tr> > <td>type</td> > <td>quantity_o_3</td> > <td>6</td> > </tr> > <tr> > <td>clickAndWait</td> > <td>submitButton</td> > <td></td> > </tr> > <tr> > <td>assertElementNotPresent</td> > <td>//div[@class='content-messages errorMessage']</td> > <td></td> > </tr> > <tr> > <td>clickAndWait</td> > <td>link=Quick Lookup</td> > <td></td> > </tr> > <tr> > <td>clickAndWait</td> > <td>link=Next</td> > <td></td> > </tr> > </tbody></table> > </body> > </html> > > |
Free forum by Nabble | Edit this page |