rockitconsulting / test.rockitizer Goto Github PK
View Code? Open in Web Editor NEWEasy to use blackbox based test suite for complex integration environments.
Home Page: http://rockit.consulting
License: GNU General Public License v3.0
Easy to use blackbox based test suite for complex integration environments.
Home Page: http://rockit.consulting
License: GNU General Public License v3.0
Unescaped characters e.g '&' in XML paylod can lead to exceptions during record/replay:
INFO # <DummyTest>: Assertion INFO ############################################################################# [Fatal Error] 0.txt:4:24: The entity name must immediately follow the '&' in the entity reference. Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.108 sec <<< FAILURE! testDummy(DummyTest) Time elapsed: 3.108 sec <<< ERROR! org.xmlunit.XMLUnitException: The entity name must immediately follow the '&' in the entity reference. at org.xmlunit.util.Convert.toDocument(Convert.java:144) at org.xmlunit.util.Convert.toDocument(Convert.java:104) at org.xmlunit.input.WhitespaceNormalizedSource.<init>(WhitespaceNormalizedSource.java:32) at org.xmlunit.builder.DiffBuilder.wrap(DiffBuilder.java:355) at org.xmlunit.builder.DiffBuilder.build(DiffBuilder.java:341) at com.rockit.common.blackboxtester.assertions.XMLFileAssertion.build(XMLFileAssertion.java:130) at com.rockit.common.blackboxtester.assertions.XMLFileAssertion.proceed(XMLFileAssertion.java:93) at com.rockit.common.blackboxtester.suite.structures.TestBuilder.proceedAssertions(TestBuilder.java:66) at com.rockit.common.blackboxtester.wrapper.AbstractTestWrapper.postProcess(AbstractTestWrapper.java:72) at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) Caused by: org.xml.sax.SAXParseException; systemId: file:/var/lib/jenkins/workspace/demo/demo.rockitizer/target/replay/DummyTest/output/020MQGetMessageFromMockQueue/MQGET.TEST_A_FROM_B_ADAPTER/0.txt; lineNumber: 4; columnNumber: 24; The entity name must immediately follow the '&' in the entity reference. at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339) at org.xmlunit.util.Convert.toDocument(Convert.java:142) ... 36 more
rockitizer version: 1.0.5.2
CLI version: 1.0
java: 1.8.0_171
environment: Windows 10
IDE: IntelliJ
A valid JSON file (RFC 8259) , with array cannot be processed by JSONFileAssertion.
[Fatal Error] :1:56: Die Formatierungssteuerzeichen im Dokument nach dem Stammelement müssen syntaktisch korrekt sein.
Input file:
{ "persons": [ { "name": "Alex Wurz", "old": 67 }, { "name": "Bertha Benz", "old": 171 }, { "name": "Arthur Conan Doyle", "old": 161 } ] }
The XML file generated by framework looks like:
<persons><old>67</old><name>Alex Wurz</name></persons><persons><old>171</old><name>Bertha Benz</name></persons><persons><old>161</old><name>Arthur Conan Doyle</name></persons>
depends on Issue #39
rockitizer version: 1.0.5.2
CLI version: 1.0
java: 1.8.0_171
environment: Windows 10
after the user (me) input the command
cli create-test Xml2XmlMq2MqTest
the program throws an error: "FileNotFoundException .................. \resources.yaml"
see screenshot attached:
Possible solution
depends on Issue #40
rockitizer version: 1.0.5.2
CLI version: 1.0
java: 1.8.0_171
environment: Windows 10
after the user (me) input the command
cli create-test Xml2XmlMq2MqTest
the program throws an error: "FileNotFoundException .................. Xml2XmlMq2MqTest.java"
see screenshot attached:
Possible solution
rockitizer version: 1.0.5.2
CLI version: 1.0
java: 1.8.0_171
environment: Windows 10
after the user (me) input the command
cli create-env LDEV
the program throws an error: "FileNotFoundException...... resources-LDEV.yaml"
see screenshot attached:
Possible solution(s)
Hello.
Is possible in this project to test inputs and outputs messages in between ACE nodes?
Callable Java functions by ESQL is possible to test as well?
Thanks in advance.
Testcases, which are created with
cli create-test MyTest
were deleted with
cli delete-testcase MyTest
Result:
Version: 1.0.5.1
rockitizer version: 1.0.5.2
CLI version: 1.0
java: 1.8.0_171
environment: Windows 10
after the user (me) input the command
cli create-env LDEV
the program throws an error: "No appenders could be found for logger"
see screenshot attached:
Possible solution:
Hallo Test.Rockitizer Team,
Im Record-Modus meldet „CLI run“ folgenden Text:
“INFO Assertions are only possible in replay mode. Set suite.mode in config.properties”.
Ich habe die config.properties nicht gefunden. Diese Datei ist eventuell nicht mehr benutzt. Löschen Sie mal bitte diese Zeile aus der Klasse, falls config.properties tatsächlich nicht mehr benutzt wird.
Danke!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.