Running karate-gatling tests in distributed mode using docker - docker

I am somewhat new to using docker and the author mentioned that it is possible to run karate-gatling tests using docker for running distributed tests: https://github.com/intuit/karate/wiki/Distributed-Testing#gatling
Can anyone provide me an example that I can use to do this or direct me to github repo if someone already tried this?
The karate author provided a nice example to run web ui tests using docker so I am looking for something similar to this: https://github.com/intuit/karate/tree/master/examples/jobserver

This is actually part of the examples/gatling sample project, and look at the GatlingDockerJobRunner unit test.
I will edit the wiki to make this more clear. Yes, this may not be the best example, please please try it out and we will be happy to incorporate any changes you suggest.
EDIT: more info at this ticket: https://github.com/intuit/karate/issues/1220

Related

Docker image with a single file Akka.net app and the Petabridge command line?

I'm writing an Akka.net hosted application that I intend to host in docker. I want to minimize the footprint so I'm making this a single file executable. But I also want to include the Petabridge command line. How would I go about doing this?
Petabridge App Template maybe what you are looking for.
You can either look at how it is done with that repo or create a new project using that template.
Please let me know if this answers your question!
EDIT
I have pasted below a reference from the repo to help you achieve this:
https://github.com/petabridge/Petabridge.App/blob/e86e40c5b7cbb0faf4228f109ce03bed3b647c4d/src/Petabridge.App/Dockerfile#L13-L32

unable to execute karate script in Firefox webdriver docker container [duplicate]

I would like to understand if,
- it makes sense to have Karate integration with SauceLabs
- Benefits if that is an Yes
Also, if i want to implement the integration what is the approach i should use.
I am planning to mimic the similar implementation using Selenium remote web driver. Please let me know if this is the only approach that can be taken or there is any other way out for this.
Yes, if SauceLabs conforms to the spec - refer to the documentation for webDriverSession: https://github.com/intuit/karate/tree/master/karate-core#webdriversession
Note that this has been proven to work with Zalenium: https://github.com/intuit/karate/tree/master/karate-core#webdriverurl
And also AWS Device Farm: https://twitter.com/ptrthomas/status/1222790566598991873
Please note that if you are ok to use only Chrome, the Docker approach may give you a better experience, but you can decide: https://github.com/intuit/karate/tree/master/karate-core#karate-chrome
EDIT - also see:
https://stackoverflow.com/a/64682293/143475
https://stackoverflow.com/a/63270092/143475
https://stackoverflow.com/a/65644566/143475

Testing in Aqueduct 3.0 Pre-Release

I have a hard time figuring out how to test in Aqueduct 3.0 Pre-Release.
I see an example in the Snippets section of the documentation that uses following to connect to an endpoint:
app.client.request("/endpoint").get()
But when I look at the example_test.dart it looks following:
harness.agent.get("/places")
So it seems that there were some changes.
In the "Writing Tests" section of the documentation I can't figure out, into which files or classes the code snippets go.
Also it took me quite a long time to figure out how to run tests:
dart test/example_dart.test
I was searching for "aqueduct test" or something similar.
Is there some more documentation, or a full code example, how to setup a test environment and write tests in 3.0 Pre-Release (with get, put, post, delete)?
The published documentation site is lagging behind, but the documentation has been written. The markdown is available here: https://github.com/stablekernel/aqueduct/blob/docs/3.0/source/docs/testing/tests.md.
It is also worthwhile to install look at the tests in the template projects, especially the larger templates: ‘aqueduct create -t db_and_auth projectname’.

Unsatisfied Link Error: Flink

I was trying to run a basic program in java by submitting to the job manager in Flink. I have a native library from open CV. When I try to submit the job I get "java.lang.UnsatisfiedLinkError: no opencv_java310 in java.library.path", however when I run it on eclipse by setting up the flink execution environment I get correct results.
I have followed some solutions from the apache flink support website:https://mail-archives.apache.org/mod_mbox/flink-user/201604.mbox/%3CCAO0MGUj_h==sw76-TWF6x8fnT_Vdc84mwu=YLejjn=bG-up+MQ#mail.gmail.com%3E and have modified my conf.yaml file accordingly (by pointing env.java.opts: -Djava.library.path="/path of Open CV library", but no luck,
Maybe my question is very basic , but still I am stuck, any help would be highly appreciated. Thanks :-)
I had a similar problem, often people references something like the "Tomcat" solution. Also, Flink with RocksDB writes the so to a tmp file, but this was also wrong.
If anyone else should pass this way- I wrote a short blog outlining the steps I took. OP's comment answer seems evident, but only after I also see the solution (when I was working on this, it was non-informative).
Shameless self promo:
https://rawkintrevo.org/2017/08/14/using-jnis-like-opencv-in-flink/

new to docker,wonder how to read docker's source code?

Don't know if it's ok to post here, new to docker and using it to build a simple app engine, so i want to look inside docker to see what's going on.
forked the source code,but you know, it's a little harder for me to read it directly,because have no idea on the whole map of it's execution flow,so i want to ask for help,how to read the source code of docker?whether anyone had write some post to explain on it?
background info: know how to use docker ,familary with it's commands
thanks for your help:)
Docker is written in go language. The two fundamental principles you need to understand are the cgroup and namespacing capabilities of the Linux kernel.
Have a look at the docker's github source code repository and contributing to docker guide.
Also, you can check this book, it explains how to extend docker.
For the source code, you can start from docker.go file.
Hope this will help.
In addition to existing comments and useful information contained in them, you could also refer to Docker Code Walk resource.

Resources