![]() ![]() In this case, it is a simple static function call (IP address, port, message) Most APIs are supplied with a simple sample demo application utilizing the API. The demonstration program can be started provided scripts: JAR/demo.bat or JAR/demo.sh The server can be started by the provided scripts: JAR/startServer.bat or JAR/startServer.sh A very simple demonstration application that invokes the API and sends my LinkedIn page and prints the response to standard outĪll of the API code can be downloaded from my GitHub account.A very simple API that connects to the server and sends a request.A very simple server that prints the request to standard out and responds to a connection with this website.The Sample Java APIįor the purpose of demonstration, I have created For this blog post, I will be using Java SE Development Kit 8u161, 32 bit. As I am using LoadRunner 12.55 – the highest Java version can be found in the LoadRunner 12.55 What’s New Page. LoadRunner 12.55 is comparable with Java 8, 32 bit. Select the correct version of Java – getting this wrong can result in the VuGen script not working. As I will use a blank windows image I will start by the selecting the JDK Version, Sample API, setup VuGen, Create VuGen Script and Run the VuGen Script. This blog post demonstrates how I integrate java APIs into my LoadRunner VuGen scripts. Yes, I have recommended the use of Windows Socket on a site with a very simple UDP protocol – however, I have always avoided recreating protocols at the network layer and used native API (java or windows DLL) to generate application load. Scripting at the API layer will reduce script creation time, increase script readability and maintainability. One selection criteria I was responding to triggered this blog post “Demonstrated Script Development experience in Windows Sockets protocol” The customer appears to be using Win Socket instead of scripting at the API layer. I am currently looking around for my next challenge and am responding to many opportunities in the market. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |