|
Converting selenium html tests to xml
------------------------------------- Key: OFBIZ-3282 URL: https://issues.apache.org/jira/browse/OFBIZ-3282 Project: OFBiz Issue Type: Bug Components: ALL COMPONENTS Affects Versions: SVN trunk Reporter: Erwan de FERRIERES Fix For: SVN trunk When trying to transform an existing test in OFBiz, I've got this error : ofbiz/framework/testtools]$ sh convertSeleniumIDE.sh testdef/seleniumxml/example/recorded/NewExample.html new.xml java.io.IOException: Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1313) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:677) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1315) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1282) at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:283) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1193) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1090) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1003) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:847) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:826) at org.ofbiz.testtools.seleniumxml.SeleniumIDEConverter.readInputFile(SeleniumIDEConverter.java:63) at org.ofbiz.testtools.seleniumxml.SeleniumIDEConverter.convert(SeleniumIDEConverter.java:51) at org.ofbiz.testtools.seleniumxml.SeleniumIDEConverter.main(SeleniumIDEConverter.java:262) I cannot transform my tests, to make them run.... Or I have to make it by hand ! If someone can help.. Cheers, Erwan -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
[ https://issues.apache.org/jira/browse/OFBIZ-3282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Erwan de FERRIERES updated OFBIZ-3282: -------------------------------------- Attachment: OFBIZ-3282.diff this line was causing the error I had. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> What I've done : * corrected the imports in the script * used sed to remove this line, it is now creating a temp file without the line which is given to the converter. > Converting selenium html tests to xml > ------------------------------------- > > Key: OFBIZ-3282 > URL: https://issues.apache.org/jira/browse/OFBIZ-3282 > Project: OFBiz > Issue Type: Bug > Components: ALL COMPONENTS > Affects Versions: SVN trunk > Reporter: Erwan de FERRIERES > Fix For: SVN trunk > > Attachments: OFBIZ-3282.diff > > > When trying to transform an existing test in OFBiz, I've got this error : > ofbiz/framework/testtools]$ sh convertSeleniumIDE.sh testdef/seleniumxml/example/recorded/NewExample.html new.xml > java.io.IOException: Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd > at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1313) > at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:677) > at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1315) > at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1282) > at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:283) > at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1193) > at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1090) > at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1003) > at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648) > at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140) > at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) > at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) > at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) > at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) > at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) > at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) > at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489) > at org.jdom.input.SAXBuilder.build(SAXBuilder.java:847) > at org.jdom.input.SAXBuilder.build(SAXBuilder.java:826) > at org.ofbiz.testtools.seleniumxml.SeleniumIDEConverter.readInputFile(SeleniumIDEConverter.java:63) > at org.ofbiz.testtools.seleniumxml.SeleniumIDEConverter.convert(SeleniumIDEConverter.java:51) > at org.ofbiz.testtools.seleniumxml.SeleniumIDEConverter.main(SeleniumIDEConverter.java:262) > I cannot transform my tests, to make them run.... Or I have to make it by hand ! If someone can help.. > Cheers, > Erwan -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-3282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux closed OFBIZ-3282. ---------------------------------- Resolution: Fixed Assignee: Jacques Le Roux Thanks Erwan, I commited your patch in CTR mode as I suppose you fixed an issue which did not exist at the moment the code has been originaly commited. I have also modified the convertSeleniumIDE.bat file in the same spirit you did, but did not test either. Completed: At revision: 886233 > Converting selenium html tests to xml > ------------------------------------- > > Key: OFBIZ-3282 > URL: https://issues.apache.org/jira/browse/OFBIZ-3282 > Project: OFBiz > Issue Type: Bug > Components: ALL COMPONENTS > Affects Versions: SVN trunk > Reporter: Erwan de FERRIERES > Assignee: Jacques Le Roux > Fix For: SVN trunk > > Attachments: OFBIZ-3282.diff > > > When trying to transform an existing test in OFBiz, I've got this error : > ofbiz/framework/testtools]$ sh convertSeleniumIDE.sh testdef/seleniumxml/example/recorded/NewExample.html new.xml > java.io.IOException: Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd > at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1313) > at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:677) > at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1315) > at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1282) > at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:283) > at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1193) > at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1090) > at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1003) > at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648) > at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140) > at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) > at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) > at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) > at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) > at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) > at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) > at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489) > at org.jdom.input.SAXBuilder.build(SAXBuilder.java:847) > at org.jdom.input.SAXBuilder.build(SAXBuilder.java:826) > at org.ofbiz.testtools.seleniumxml.SeleniumIDEConverter.readInputFile(SeleniumIDEConverter.java:63) > at org.ofbiz.testtools.seleniumxml.SeleniumIDEConverter.convert(SeleniumIDEConverter.java:51) > at org.ofbiz.testtools.seleniumxml.SeleniumIDEConverter.main(SeleniumIDEConverter.java:262) > I cannot transform my tests, to make them run.... Or I have to make it by hand ! If someone can help.. > Cheers, > Erwan -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
| Free forum by Nabble | Edit this page |
