Coder Social home page Coder Social logo

rockitconsulting / test.rockitizer Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 20.0 3.81 MB

Easy to use blackbox based test suite for complex integration environments.

Home Page: http://rockit.consulting

License: GNU General Public License v3.0

Java 100.00%

test.rockitizer's People

Contributors

alexmueller-rockit avatar devteamua avatar edugohr avatar muellerwaldemar avatar nicky82 avatar rockitconsulting avatar rockitromansokunov avatar sergejberg avatar yefymdmukh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

test.rockitizer's Issues

Unescaped characters in XML paylod can lead to exceptions during record/replay.

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

JSONFileAssertion has problems with Json arrays

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>

cli create-test ->FileNotFoundException

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:

image

Possible solution

  1. call
    cli create-env
    without parameters

cli create-test ->FileNotFoundException (II)

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:

image

Possible solution

  1. create folder:
    src\test\java

cli create-env LDEV -> FileNotFoundException

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:

image

Possible solution(s)

  1. run cli create-env - without environment name
  2. create following path in your project home:
    src/test/resources

cli run all record --> ClassNotFoundException

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 run all record
the program throws an error: "ClassNotFoundException.................."
see screenshot attached:

image

Question about Message Broker Unit testing

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.

CLI: delete-testcase removes Java classes only

Testcases, which are created with
cli create-test MyTest
were deleted with
cli delete-testcase MyTest

Result:

  • Java-Test classes are deleted
  • testcases.yaml still contains the testcase.

Version: 1.0.5.1

cli create-env -> Log4j problem

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:

image

Possible solution:

  1. create an log4j.xml file and drop it into \bin folder
  2. extend cli.bat (row 75) with entry:
    .;bin;

Erwähnung von config.properties in CLI-Ausgabe

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.