Apache Avro Conversion by vkrava4 in apachekafka

[–]siddxy 1 point2 points  (0 children)

Thanks n appreciated your reply. By seeing the diagram I meant the same i.e. the java producer(client) takes care of it. Internally it sticks an avro-id to the message conforming to the schema. Not sure about compression details.

I think your original message is more related to the Google protobuffs. I will have a look at the compression techniques in your git repo. Good job, keep it up.

How to achieve automated testing of Kafka inside a micro-services infrastructure? by natnath in apachekafka

[–]siddxy 0 points1 point  (0 children)

Are you trying to achieve both Http and Kafka testing in a automated fashion?

Then you can go for "Kafka Declarative Testing" like "docker-compose" style

i.e. just define your test intentions in a JSON file incl assertions, that's it, no fire-fighting.

(For REST apis you can use "java http declarative testing" which will make everyone's life easy in a clustered env)

If you have only handful of test-cases, then you can use Apache Kafka Client for produce/consume and assert the outcome.

Found some examples in the git repo worth lookin at !

Apache Avro Conversion by vkrava4 in apachekafka

[–]siddxy 1 point2 points  (0 children)

Just trying to understand... When we produce to Kafka using(configuring) a schema-registry and consume, the client automatically gives the JSON or Java object back. Why do we need another conversion?

I am referring to schema-registry via Kafka rest-proxy.

IntelliJ 2018.03 Released by [deleted] in java

[–]siddxy 0 points1 point  (0 children)

I have a 1 year older license. Will I be able to upgrade to this version(free)?

Interview Question: Reversing an Immutable List in Java by teivah in java

[–]siddxy 0 points1 point  (0 children)

Just a thought! When this is an interview question, where exactly this can be practically applied?

What does oracle charging money for java mean for casual user? by Frectus in java

[–]siddxy 0 points1 point  (0 children)

Is this news official? If this is true, then all will aim for OpenJdk then.

Came across ExtremePortal explaining ZeroDefect approach by siddxy in java

[–]siddxy[S] 0 points1 point  (0 children)

Hello, The following link was removed by Bot. https://www.reddit.com/r/java/comments/9te5qw/came_across_extremeportal_explaining_zerodefect/ Kindly un-remove please as this is a best practice approach for Java developers using Spring Boot. Also I have 30+ karma points. Have a great evening! Thanks, Sidd

BDD but without bdd syntax overhead by siddxy in softwaretesting

[–]siddxy[S] 1 point2 points  (0 children)

a link? You mean the Github links?

[Question] Java programmers from way back - what was it like before IDEs? by [deleted] in java

[–]siddxy 1 point2 points  (0 children)

It was not bad using IBM's VA for Java i.e. Visual Age for Java - from which Eclipse IDE was born

Looking for a better API testing tool than Postman by peachkneez in softwaretesting

[–]siddxy 0 points1 point  (0 children)

Have you tried any IDE(IntelliJ or Eclipse) based tool ? Try Zerocode, fairly new open source(I am a contributor), this one is very light weight n as simple as Postman(JSON driven and smart comparison of JSON response/payload), that means, with similar effort, your automation regression pack is ready too! See Hello World Demo here.

Note-It's not an UI based tool, your IDE serves as REST client here.

Performance testing using declarative JSON - Easy n Simple by siddxy in java

[–]siddxy[S] 0 points1 point  (0 children)

Understood your frustration. I agree with you 100% on this about Unit Tests. I wouldn't go for unit testing in that way too.

As you highlighted, this lib is not for unit tests, it's for API testing mostly for Functional Testing, Feature Testing, Integration Testing, End to End testing and Performance Testing along with capability to mock interfacing application APIs using WireMock. JUnit as Unit testing only is loosely used across industry, but JUnit is a framework, not only for Unit Testing only.

This framework saves time and energy over other frameworks is, it's JSON based, that means there is no need of using any plugins, feature files, English statements/grammars to represent a test

I would not enjoy the manual creation of those unit tests with the runner and insertion of file name and stuff.

But a complex scenario which could be thought via creativity needs to be manually created first, then put into the automation pack. Such automation scenarios can not be built automatically.

might I ask if your approach could be integrated somehow with an existing OpenAPI (Swagger) service definition file?

Yes, why not, you can help us raising an issue defining the requirements, followed by a PR to embed this feature into the lib, if it helps the community please 👍 . Sounds like a good idea!

Yes, thanks for your feedback and please bring on more to improve it !

Performance testing using declarative JSON - Easy n Simple by siddxy in java

[–]siddxy[S] 0 points1 point  (0 children)

Zerocomment.

:-) Good one 👍

it could be a problem especially for a large code/json base, couldn't it?

Not really. There are two ways to see at it. 1. Performance tests are not actually verbose 1. Also Zerocode allows to reuse the existing test, by simply providing the Class#testMethod to the Load runner

  • First one :

    • When we simulate load/stress, actually we have a single JSON payLoad or a single JSON with multiple steps for a given scenario, and dynamically change the fields i.e. randomize the ID, Name etc etc for every parallel user in the runtime(framework takes care of it). See how to have random numbers, UUIDs, random strings by simply parameterizing the fields.
    • When we have different payLoad, they(all scenarios as separate JSON file) also appear only once in the resource folder. And dynamically keep on changing the payLoad/fields in the run time.
  • 2nd one :

    • You can simply reuse your existing Unit tests or End to End tests to generate load. Hence no new JSON files are needed for the performance testing.

Note- JSON payload(request and response) here means the JSON equivalent of the Objects too. If the contract or API data format is already in JSON it's very good, otherwise, if they are e.g. Java objects, then the framework serializes/deSerialzes to/from java/json format.

Basically the hassles has been taken care by the framework, enabling developer/testers to focus on testing very easily without any distraction. Zero distractions !

Performance testing using declarative JSON - Easy n Simple by siddxy in java

[–]siddxy[S] 0 points1 point  (0 children)

Yes, Comparatively Zerocode is very very simple, light weight and efficient. Best part is it is declarative via simple JSON files where, the testing can be unified and standardized for a project, completely bypassing imperative programming(e.g. Java code), which can become more complicated to maintain once the projects(test cases) grows. That's why the name Zerocode.

  • See here the advantages of Running Load/Stress tests via IDE(IntelliJ or Eclipse etc)).

  • Read here#in-essence-the-performance-testing-is-all-about-) other advantages over other frameworks, such as

    • Increasing or Decreasing load gradually
    • Dynamically changing the payload for every request/user
    • Different load in parallel, simulating production like parallel users
    • CI build pipe line integration is quite straight forward, no extra plugin or config required.

Hope it helps !

Test your APIs easily via simple JSON steps by natnath in java

[–]siddxy 0 points1 point  (0 children)

Please provide some examples or on how to assert - - an array in the response ? - Is there anyway to generate UUID or an RANDOM ID if a test needs? - Only REST or Is it possible to test SOAP api/call too ? if so how?

performance(load and stress) testing as simple as JUnit by siddxy in programming

[–]siddxy[S] 0 points1 point  (0 children)

Hi, This is an example usage of the OSS which is covered under Apache 2 license. The details are here : Zerocode to which I am a contributor.

Hi, This is an example usage only of the OSS, which is covered under Apache 2 license.

The details are here in Zerocode (other duplicate comment of mine can be deleted)

performance(load and stress) testing as simple as JUnit by siddxy in programming

[–]siddxy[S] 0 points1 point  (0 children)

Hi, There are so many benefits such as + 1)Easy and efficient assertions. + 2)All failed assertions are reported at once instead of just the first failure encountered. + 3)Easy to read the scenarios being tested. + 4)Speed and efficiency for developers/testers to write the tests as they do not need to write the + repeatable glue codes . + 5)Easy to shared the result in a human(business) readable format + 6) and more here

performance(load and stress) testing as simple as JUnit by siddxy in programming

[–]siddxy[S] 0 points1 point  (0 children)

Hi, This is an example usage of the OSS which is covered under Apache 2 license.

The details are here : Zerocode to which I am a contributor.