Create custom Java based extension in Gatling (version 3.8.4) - gatling

I am trying to create my own extension (in Java language) for Gatling (version 3.8.4).
Can you please point me the steps to be followed ?
I could see some articles on creating custom extension in Scala but not in Java.

It's not possible atm. Core Gatling is written in Scala, not Java. The Java layer is only a wrapper on top of the Scala one.

Related

Run native C++ code on codename one

I have an android app where I am running native C++ code using JNI (Java Native Interface). I want to port it to codename one so that it can run on iOS as well. What is the alternative to JNI on codename one that will allow me to run my native C++ code?
You can call C++ from Objective-C we did just that in the ZXing demo for the iOS port see: http://github.com/codenameone/codenameone-demos
For Android you will need to wrap the C++ code using the NDK in order to use it. Chen discussed this a while back in a blog post here: http://www.codenameone.com/blog/integrating-android-3rd-party-libraries-jni.html
The relevant section is this:
We recently added a 3rd option :aar files. The aar file is a binary format from Google that represents an Android Library project.
One of the problem with the Android Library projects was the fact that
it required the project sources which made it difficult for 3rd party
vendors to publish libraries, so android introduced the aar file which
is a binary format that represents a Library project.
To learn more about arr you can read this.
You can link an aar file by placing it under the native/android and
the build server will link it to the project.
Notice that for Android you might want to use the new gradle build system which would also make this simpler: http://www.codenameone.com/blog/material-icons-background-music-geofencing-gradle.html
Codenameone has it's native interface that allows adding native codes.
Each platform has it's native code and as far as I know C++ is not in any of them.
I would suggest you translate your code from C++ to Java and Objective-C manually and you can use those code in implementing CN1 native interface.
Read about Native Interface here and also have a look at native demo

Bindings to use Cucumber with C

Are their any bindings to use Cucumber with C? Google keeps telling me about vegetables when I ask.
It's possible to make Ruby bindings to a C application, but I haven't heard of any C binding for a Ruby application. It seems quite hard to make something like that.
BTW, cucumber docs lists all available ports and way to use their technology in an other langage.
There is :
Java Virtual Machine: JRuby and Java
.NET (Microsoft.NET and Mono):
IronRuby and .NET, IronRuby and Mono
Adobe Flex: FunFX, Melomel
Python
Erlang: cucumberl
Web apps in any language, using web browser and/or Javascript.
I am Using Cucumber for while and I could not find any C binding. As Ruby is top of the C.you can try to convert it.
for more info goto www.cuke.info or https://github.com/cucumber/cucumber/wiki/

How to use BulkLoader in google apps using java

How to use bulk loader tool in java, i got docs for python but what about java
There is no Java bulkloader, you need to use the Python version which works also on the Java applications.

Where are the dlls -WebDriver.Common and WebDriver.Firefox in Selenium Web Driver?

I am running some tests on Selenium Web Driver. But looks like that I need some dlls like WebDriver.Common.dll, WebDriver.Firefox.dll.
I had downloaded the web driver api from this link
http://code.google.com/p/selenium/downloads/detail?name=selenium-dotnet-2.1.0.zip&can=2&q=
And when I unzip, could not find the dll that I mentioned in the subject.
I am using Visual Studio 2010 & creating a class library.
Please let me know if there is another link to download the mentioned dll or another way to get this working.
WebDriver.Common.dll, WebDriver.Firefox.dll, and all of the other browser-specific assemblies were combined into a single WebDriver.dll assembly for the final 2.0.0 (and later) releases. You should only have to create a reference to WebDriver.dll to be able to use all of the functionality of the Selenium WebDriver API.
Another helpful step to point out is adding the proper using statements for each driver type.
For Example:
using OpenQA.Selenium.Firefox;
using OpenQA.Selenium.IE;
using OpenQA.Selenium.Chrome;

Can I make a GUI using NetBeans but implement functionality using C?

I want to use NetBeans to build the GUI for my project, but implement the functionality using C code. Is there any way I can make the C code run when a button in the GUI is clicked?
I believe you can use standard JNI with netbeans.
Here's a link for version 6.0, (http://www.netbeans.org/kb/60/cnd/beginning-jni-linux.html) which I hope still applies for 6.5.
Once you set up a basic JNI C-library with the appropriate headers, it's pretty easy to use from the java side. And once you have that much done, it's even possible to throw Java Exceptions from the C code (http://www.codeproject.com/KB/debug/jni_ex.aspx)
But you should take note that if you're sending a lot of data back and forth, the overhead of the JNI data passing could be greater than the gain of using C for your speed-critical sections.
Cheers
You could use Java Native Access (JNA), a new technology. With JNA, Java applications can dynamically access native libraries from Java without JNI. JNA allows you to call directly into native functions using natural Java method invocation.
The project home page is here:
https://jna.dev.java.net/
Wikimedia article:
http://en.wikipedia.org/wiki/Java_Native_Access

Resources