Thanks Olivier for your reply. I will have a look at it. But I am bit puzzled about mention of class org.apache.ofbiz.testtools.WebDriverTest in ofbiz codebase which I cannot locate anywhere.. Regards, Sameer Apte
On Wed, 7 Oct 2020, 09:36 Olivier Heintz, <[email protected]> wrote: > Hi, > > Currently, selenium webdriver is used by ofbizextra to test some process > (currently on HR and example) > There is a dedicated project for that > https://gitlab.ofbizextra.org/ofbizextra/OfbSwd > Documentation is on > https://ofbizextra.org/ofbswd/OFBiz_SeleniumWebDriver.html > > Main goal for this project is to be able to write GUI test on a functional > point of view: > - test and data are separated > - code for test is without selenium webdriver technical aspect (there is a > dedicated layer for them) > > This project is also related with ofbiz documentation, because I use it to > build sort of tutorial, > because each time the HR process selenium test run (each day ) a video of > the result is done with some comment for the viewer. > > Le 02/10/2020 à 22:33, Sameer Apte a écrit : > > Hi, > > > > It seems that there was some attempt to support selenium test cases in > the > > past by ofbiz. > > > > Wondering about this as I can see below code snippet in > > * > https://github.com/apache/ofbiz-framework/blob/trunk/framework/testtools/src/main/java/org/apache/ofbiz/testtools/ModelTestSuite.java > > < > https://github.com/apache/ofbiz-framework/blob/trunk/framework/testtools/src/main/java/org/apache/ofbiz/testtools/ModelTestSuite.java > >* > > > > else if ("webdriver-test".equals(nodeName)) { > > try { > > String className = "org.apache.ofbiz.testtools.WebDriverTest"; > > Class<?> cl; > > cl = Class.forName(className); > > Constructor<?> con = cl.getConstructor(String.class, Element.class); > > this.testList.add((Test) con.newInstance(caseName, testElement)); > > } catch (Exception e) { > > Debug.logError(e, MODULE); > > } > > } > > > > Just curious if it is still pretty much the case? Or is it a dead idea > now.. > > Checking this as I cannot see *org.apache.ofbiz.testtools.WebDriverTest* > > class anywhere which is referenced in the above block. > > > > Regards, > > Sameer Apte > > >
