New Ranks & Badges For The Community!
Notice something different? The ranks and associated badges have gone "Star Fleet". See what they all mean HERE

Modern C# .NetCore binding for popular protocols like Web HTTP/HTML

Idea ID 2832225

Modern C# .NetCore binding for popular protocols like Web HTTP/HTML


Recently my mind is blown away by C traps and pitfalls (a book name). While we can utilize recording to generate ANSI C script out of a web application, probably most of the time we still need to understand and modify the code. LoadRunner was invented 25+ years ago after all, at a time when VB, C/C++ dominated. After a few decades, supporting a modern scripting language like C# (or modern Java, or python) would be a great syntax sugar for most users. Javascript is one direction, now explored by DevWeb  (also Web protocols have a JS flavor in code generation settings, have you tried it?). What a nice world if the classic LR protocols like Web HTTP, Web Service, SAP/Oracle, etc. can also run as .NET languages, mainly C#?

While adopting .NET core, it will also keep the cross-platform ability for LoadRunner protocols. Imagine a Web HTTP Vuser script in C# (.NET core library) initially generated by VuGen recorder and maintained by PerfTesters easily, and then being executed by load generators on both Windows, Linux and etc.

Please leave your comments below.

Micro Focus Expert
Micro Focus Expert

One concrete benefit of adopting .Net core versus C script:

String Manipulation

In C, we have to care about memory buffer allocation, and C string format and copy operations are tedious and error-prone. 

in C#, we have built-in managed String class making everything trivial.


Here is a sample C# Web HTTP script:

Scripting in C# .NET Core for LR.png

Micro Focus Expert
Micro Focus Expert
Status changed to: Waiting for Votes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.