how to run existing restassured tests with gatling? - gatling

I'm trying to implement gatling performance tests as a part of my project. I have existing test-cases written in RestAssured with Java and maven as a build tool. Can I re-use those and hook with Gatling. I checked the reference https://abstracta.us/blog/performance-testing/tutorial-use-gatling-maven/ - but mostly it tells me to write new tests for Gatling.
Thanks!

No, it's not possible atm.
And the blog post you mentioned is definitely not the reference. The reference is the official documentation and the Gatling Academy.

Related

API-Call Example with Postman or Fiddler

I tried the installation with Docker and Kiwi TCMS and it worked wonderfully. Unfortunately, I have a lot of trouble with API calls. I tried several times without success to import the example Perl script from the documentation (https://gist.github.com/atodorov/f5aed028b6f254d97bcaf93453abe8d2).
Does an example(API-Call) exist without a Perl script (for Postman or Fiddler)? I would like to permanently update existing data with .NET environment.
Thanks :-)
The script in the gist is Python, not Perl.
For .NET I can't help you because I've never written a single line of code in .NET. Maybe somebody else can.
See if you have ready libraries for making XML-RPC calls or JSON-RPC calls. This is very common so I imagine there are such libraries. Then you will need to execute the method names described in out API docs.
In any case if someone is using .NET, or any other language for that matter please contribute your scripts/snippets to https://github.com/kiwitcms/api-scripts so we can build a shared knowledge base.

Can Tensorflow.js be used for face recognition?

There is a python and C++ api available for doing image recognition.The tutorial is provided in tensorflow.org but as tensorflow.js is released few months back only does it support all the api's available in the python and c++ implementation.
Vincent Mühler has created face-api.js, a JavaScript API base on tensorflow.js. You can find out the blog & code on the links below.
https://itnext.io/face-api-js-javascript-api-for-face-recognition-in-the-browser-with-tensorflow-js-bcc2a6c4cf07
https://github.com/justadudewhohacks/face-api.js
Adding to the answers above, tensorflow on JavaScript can be quite slow. Here's a quick comparison:
However, If you do run tensorflow.js on Node, you could make use of the binding directly to the TensorFlow APIs written in C which would be fast. You could also run the CUDA versions if you import the right packages on Node.js
On the browser WebGL is used to run tensorflow. Using the tensorflow or some ML on the browser, opens up whole new opportunities to do things from right within the browser.
As Jirapol suggested, you could take a look at https://github.com/justadudewhohacks/face-api.js which is super easy to use. It actually took a very short while for me to start writing a facial recognition login system on node using face-api.js. Here's a link if you want to take a look at the unfinshed code: https://github.com/WinstonMarvel/face-recognition-authentication
does it support all the api's available in the python and c++ implementation.
No, it still has a limited amount of features. Keep in mind it still in version 0.11.6 so that will change. You can look at the documentation to see what's available.
If you want to port a specific model to tfjs try to get it as a keras model then convert it using tensorflowjs_converter to a tfjs compatible one like this tutorial shows.
There is even a tfjs examples which works with webcam data (Tutorial, Live Demo), so you could look into that to start.
Yes it can.
and also with the help of webassembly and SIMD in the browser.
you can have a smooth experience of image processing and video processing in the browser.
have a look at this link from google v8.
the good news is that with the same api you can run Tensorflow.js in the browser, node.js and React Native all with the native speed and using native capabilities

How do i properly test my realm.io implementation in React Native with Jest?

I'm quite new to react native and Jest and have so far mostly written tests using the test() method and expect().toBe... or .toEqual. Now since realm works on a document level (as far as i understand) how can i proive sample documents to realm and test what the outcome is ? Is there any documentation that coverst this topic ? I haven't found anything on their official site...
When writing tests, it's important to remember that your goal should not be to test Realm itself, it's to ensure that your components that are dependent on a Realm instance do what you expect. With that said, Jest makes it fairly easy to mock out Realm instances allowing you to validate your application logic.
This GitHub issue thread was helpful for me, hopefully it is for you too: https://github.com/realm/realm-js/issues/370

What is the maintained version of google-app-engine mapreduce for python?

It seems that the latest documentation is this one:
https://github.com/GoogleCloudPlatform/appengine-mapreduce/wiki/1-MapReduce
so I assumed that the code in this repo is the latest, is that so?
It seems that in the SDK one can also find a mapreduce lib under google.appengine.ext.mapreduce.
The issue is that I can't find a working example using either one of them, nor a good installation instructions (just putting the mapreduce dir from the above repo doesn't seem to work). Also running the tests fails.
So before digging in and working through the issues to get it working I wonder if I'm missing something obvious?
Any help will be great.
Got response from the Google team that indeed this library is maintain.
Indeed the code example was missing but it was added back now and some of the documentation was updated.
The best tutorial I have found is this one:
http://sookocheff.com/series/mapreduce-api/
Now linked from the official documentation.
One thing that wasn't clear to me in the documentation is that in addition to the mapreduce lib which you need to add to your app code, you need also to add the dependencies:
simplejson
cloudstorage
graphy
appengine-pipelines
the code comes with a build.sh which does it on the some code but you need to do it your self if you are adding the mapreduce lib to your code project.
To use the lib you need to add just this folder to your project. Then use these imports:
from mapreduce import base_handler
from mapreduce import mapreduce_pipeline
This is a good start point.

jenkins cucumber jvm reports plugin java screenshots

I'm using this plugin for cucumber, and I saw that if one or more steps are failed you have the screenshot on the report of that step.
Is there a way to have the screenshots for each step also if they are not failed?
Generally it is not considered a good practice due to performance overhead however you can do it using "afterstep"
hooks.

Resources