loadrunner | sane JavaScript loader and build tool | Build Tool library

 by   danwrong JavaScript Version: Current License: MIT

kandi X-RAY | loadrunner Summary

kandi X-RAY | loadrunner Summary

loadrunner is a JavaScript library typically used in Utilities, Build Tool, Angular, Webpack applications. loadrunner has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Loadrunner is a JavaScript dependency manager. Loadrunner started off as my science project script loader and module system but its turned into a generic dependency manager that you can build on to manage any type of asynchronous dependency from CSS templates to DOM events to cache loading. It does however include build in support for loading regular JavaScript files, AMD modules and its own, more elegant (IMHO) flavour of modules.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              loadrunner has a low active ecosystem.
              It has 279 star(s) with 39 fork(s). There are 15 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 12 open issues and 5 have been closed. On average issues are closed in 373 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of loadrunner is current.

            kandi-Quality Quality

              loadrunner has 0 bugs and 0 code smells.

            kandi-Security Security

              loadrunner has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              loadrunner code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              loadrunner is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              loadrunner releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.
              loadrunner saves you 334 person hours of effort in developing the same functionality from scratch.
              It has 1715 lines of code, 0 functions and 53 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed loadrunner and discovered the below as its top functions. This is intended to give you an instant insight into loadrunner implemented functionality, and help decide if they suit your requirements.
            • Define this module
            • Called when the module is finished .
            • build the log for a dependency step
            • Definition of the Program .
            • Function that maps require calls to module .
            • Detect test name
            • Resolve module id .
            • get the text of an element
            • Create a list of dependencies
            • Checks to see if the current environment is emitted .
            Get all kandi verified functions for this library.

            loadrunner Key Features

            No Key Features are available at this moment for loadrunner.

            loadrunner Examples and Code Snippets

            No Code Snippets are available at this moment for loadrunner.

            Community Discussions

            QUESTION

            Uploaded File Size in LoadRunner
            Asked 2022-Jan-20 at 18:21

            We are creating a LoadRunner script which will upload the files for multiple users through Web/HTTP protocol. However we need to check the uploaded file size during runtime through LoadRunner script only and accordingly do exception handling while test is running.

            Does anyone know on how to check file upload size with LoadRunner function itself?

            Please note downloading the uploaded file to check the download file size is not possible - to avoid any network congestion or extra work.

            ...

            ANSWER

            Answered 2022-Jan-20 at 18:21

            Help me to understand your question better. Are you suggesting that the file upload process for your site is in question, that it is not yet functionally vetted as working for one?

            Or, are you trying to generate some sort of normalized datapoint because you are uploading files of various sizes, which then result in response times of various times, where then you want to generate a normalized rate, such as bytes/time?

            You can check the file size with core language functions.

            Suggested by a colleague, Uttiyan Nandy, on Facebook as I was investigating some attributes for web_get_int_property() and noting that HTTP_INFO_UPLOAD_SIZE does not exist as an object. Consider pairing web_get_int_property() with HTTP_INFO_TOTAL_REQUEST_STAT for the full size of the request, which may include your file attachment as well as headers, ....

            Source https://stackoverflow.com/questions/70752406

            QUESTION

            Gatling - how do I run a particular scenario for a specific duration
            Asked 2021-Aug-03 at 07:57

            I have two scenarios which I want to execute in parallel, ramp up and maintain the load for 5 minutes before stopping the users. similiar to the scheduler in loadrunner.

            I have used the below approach, please advice if this is right way of doing it.

            ...

            ANSWER

            Answered 2021-Aug-03 at 07:57

            Yes, that would work.

            Note 1: you can use a forever loop instead of a during one as you're interrupting with maxDuration anyway.

            Note 2: if you're setting the same httpProtocol on each scenario, you can define it on the setUp just like you did for maxDuration.

            Note 3: you can use maxDuration(5.minutes) instead of maxDuration(300 seconds).

            Source https://stackoverflow.com/questions/68631457

            QUESTION

            Why do tests fail when executed as a class?
            Asked 2020-Dec-04 at 09:34

            I have a series of tests separated into classes. The tests run properly when run individually or when run as a whole package. Most classes also run properly when executed as a class, but there is one class that fails to execute with the following error:

            ...

            ANSWER

            Answered 2020-Dec-04 at 09:34

            The problem was due to having public methods in the test class that were not annotated with @Test. The solution I used was adding @Ignore and @Test annotations to the method. ie:

            @Ignore
            @Test
            fun someUnImplementedTest() {
            }

            Adding only @Test works as well, but it will run the test and mark it as passed allowing you to forget that it's not yet implemented.

            Source https://stackoverflow.com/questions/65124566

            QUESTION

            JMeter Script- Connection timed out
            Asked 2020-Oct-07 at 07:52

            I am receiving the below error when trying to run a JMeter script . The API works fine in Loadrunner . I had set the https.default.protocol=TLSv1.2 in user.properties for the SSL version. What could cause the below error .

            org.apache.http.conn.HttpHostConnectException: Connect to rXXXXX.XXXX-XXXX.XXXXXX.net:443 [XXXXXX.XXXXXX-XXXXXX.XXXXXX.XXXXXX/21.60.245.182] failed: Connection timed out: connect at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:156) at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl$JMeterDefaultHttpClientConnectionOperator.connect(HTTPHC4Impl.java:326) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:374) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:850) at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:561) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:67) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1282) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257) at java.lang.Thread.run(Unknown Source) Caused by: java.net.ConnectException: Connection timed out: connect

            e

            ...

            ANSWER

            Answered 2020-Oct-07 at 06:46

            Given you send the same request you should get the same response no matter what tool is being used for sending the request.

            If you're getting different responses or not getting a response either you're sending not the same request or there is a difference in the tools configuration.

            1. The most possible reason could be proxy, by default Loadrunner respects underlying operating system proxy settings and in JMeter you need to configure the upstream proxy connection manually, see Using JMeter behind a proxy article for more details

            2. Another reason could be incorrect request configuration, i.e. protocol/host/port/path mismatch

            3. And last but not the least, maybe your connect/response timeouts are too low, try ramping them up, the relevant setting lives under "Advanced" tab of the HTTP Request sampler (or even better go for HTTP Request Defaults)

            Source https://stackoverflow.com/questions/64236919

            QUESTION

            I need to measure the response time for a file export using Trueclient protocol in loadrunner
            Asked 2020-Aug-29 at 15:23

            I need to measure the response time for a file export using Trueclient protocol in loadrunner.After i click on the export button the file will get downloaded. But i am not able to measure the time for the download accurately.

            ...

            ANSWER

            Answered 2020-Aug-29 at 15:23

            Pull that data from the HTTP request log, which will show the download request, and, if the w3c time-taken value is included in the log, the time required to fulfill the download.

            You can process the log at the end of the test for the response time data. If you need to, you cam import a set of datapoints into analysis for representation with the rest of your data. You might want to consider a normalized value for your download, instead of a raw response time. I imagine that the files are of different sizes, so naturally they will have different download times. However, if you divide download bytes with time (in seconds), then you will have a normalized measurement of bytes per second which then allows you to compare one download to the next for consistent operation.

            Also, keep in mind that since you are downloading a file, writing to a local disk, for (presumably) multiple users on a host, you will face the risk of turning your local file system into a bottleneck. You can see this same effect if you turn up logging on all users to the highest level and run your test. The wait for lock and wait for write, plus the actual writing of data, becomes a drag anchor to the performance of your virtual user. This is why the recommended log level is "log on error" or send the error to the output window of the controller via lr_output_message() or lr_vuser_status_message(). Consider a control load generator of the same hardware definition as the others with only a single virtual user of this type on it. If the control group and global group degrade together then you have an app issue. If your control user does not degrade, but your other users do, then you have a test bed induced influence on your results.

            These are all issues independent of the tool you are using for the test.

            Source https://stackoverflow.com/questions/63635622

            QUESTION

            How do I determine virtual user amount and pacing if the client cannot give me any real data about the website?
            Asked 2020-Aug-29 at 14:58

            I've come across many clients who aren't really able to provide real production data about a website's peak usage. I often do not get peak pageviews per hour, etc.

            In these circumstances, besides just guessing or going with what "feels right" (i.e. making it all up), how exactly does one come up with a realistic workload model with an appropriate # of virtual users and a good pacing value?

            I use Loadrunner for my performance/load testing.

            ...

            ANSWER

            Answered 2020-Aug-29 at 14:58

            Ask for the logs for a month.

            • Find the stats for session duration, then count the number of distinct IP's blocked by session duration.
            • Once you have the high volume hour, count the number of page instances. Business processes will typically have a termination page which is distinct and allows you to understand how many times a particular action takes place, such as request new password, update profile, business process 1, etc...

            With this you will have a measurement of users and actions. You will want your stakeholder to take ownership of this data. As Quality assurance, we should not own both the requirement and the test against it. We should own one, but not both. If your client will not own the requirement, cascading it down to rest of the organization, assume you will be left out in the cold with a result they do not like....i.e., defects that need to be addressed before deployment to production.

            Now comes your largest challenge, which is something that needs to be fixed with a process issue by your client.....You are about to test using requirements that no other part of the organization, architecture, development, platform engineering, had when they built the solution. Even if your requirements are a perfect recovery, plus some amount for growth, any defects you find will be challenged aggressively.

            Your test will not match any assumptions or requirements used by any other portion of the organization.

            And, in a sense, these other orgs will be correct in aggressively challenging your results. It really isn't fair to hold their designed solution to a set of requirements which were not in place when they made decisions which impacted scalability and response times for the system. You would be wise to call this out with your clients before the first execution of any performance test.

            You can buy yourself some time. If the client does have a demand for a particular response time, such as an adoption of the Google RAIL model, then you can implement a gate before accepting any code for multi-user performance testing that the code SHALL BE compliant for a single user. It is not going to get any faster for two or more users. Implementing this hard gate will solve about 80% of your performance issues, for the changes required to bring code into compliance for a single user most often will have benefits on the multi-user front.

            You can buy yourself some time in a second way as well. Take a look at their current site using tools such as Google Lighthouse and GTMetrix. Most of us are creatures of habit, that includes architect, developers, and ops personnel. We design, build, deploy to patterns we know and are comfortable with....usually the same ones over and over again until we are forced to make a change. It is highly likely that the performance antipatterns pulled from Lighthouse and GTMetrix will be carried forward into a future release unless they are called out for mitigation. Begin citing defects directly off of these tools before you even run a performance test. You will need management support, but you might consider not even accepting a build for multi-user performance testing until GTMetrix scores at least a B across the board and Lighthouse a score of 90 or better.

            This should leave edge cases when you do get to multi-user performance testing, such as too early allocation of a resource, holding onto resources too long, too large of a resource allocation, hitting something too often, lock contention on a shared resource. An architectural review might pick up on these, where someone might say, "we are pre-allocating this because.....," or "Marketing says we need to hold the cart for 30 minutes before de-allocation," or "...." Well, you get the idea.

            Don't forget to have the database profiler running while functional testing is going on. You are likely to pick up a few missing indexes or high cost queries here which should be addressed before multi-user performance testing as well.

            You are probably wondering why am I pointing out all of these things before your performance test takes place. Darnit, you are hired to engage in a performance test! The test you are about to conduct is very high risk politically. Even if it finds something ugly, because the other parts of the organization did not benefit from the requirements, the result is likely to be rejected until the issue shows up in production. By shifting the focus to objective measures even before you need to run two users in anger together there are many avenues to finding and fixing performance issues which are far less politically volatile. Food for thought.

            Source https://stackoverflow.com/questions/63635683

            QUESTION

            Retrieving the COM class factory for component Access Denied Error
            Asked 2020-Jul-24 at 07:30

            While trying to run Azure Pipeline for Loadrunner Professional Tests, got below error

            ...

            ANSWER

            Answered 2020-Jul-24 at 07:30

            Solved this issue by opening Dcom Config for 32-bit Applications:

            • Go to Start | Run
            • Type MMC -32 and click Ok
            • Go to File | Select Add/Remove Snap-in option
            • Add Component Services option in Management Console application
            • Then follow the path to Dcom Config

            And Boom! i found wlrun.LrEngine under Dcom.

            • And further gave appropriate permissions to it (Right click >> properties >> security >> Click customize - edit and add permissions)

            Source https://stackoverflow.com/questions/63017937

            QUESTION

            Unable to initalize spark object in a Python class
            Asked 2020-Apr-20 at 12:50

            I created sparkSession object in delta_interface_logids.py file as shown below:

            ...

            ANSWER

            Answered 2020-Apr-20 at 12:50

            I guess the editor is unable to know which kind of object spark is while you are defining your class. Just because you named the class argument spark, it does not necessarily mean that your code is going to handle a SparkSession object.

            This is an inherent "issue" (many quotes) of dynamic languages. Function arguments don't have types outside the runtime. When you are defining a class with your editor, you are definitely not in runtime.

            Extra

            For anyone using Python >3.5, I strongly recommend using type annotations. These annotations help to improve code documentation and can be checked statically with tools such as mypy.

            For example, in the code above, I would recommend something like this:

            Source https://stackoverflow.com/questions/61321821

            QUESTION

            Importing the pem certificate into jmeter test plan
            Asked 2020-Jan-27 at 08:20

            Currently I am doing the API load test using the LoadRunner, where the mTLS is implemented on the server side. Also I am able to include the certficates(2 pem files) using the web_set_certificate_ex function by passing the cerificate paths(clientA-crt.pem and clientA-key.pem) - the calls works perfectly fine.

            Now we are planning to use jmeter for load testing. As first step, I converted pem into p12 format using the following command openssl pkcs12 -export -out Cert.p12 -in clientA-crt.pem -inkey clientA-key.pem -passin pass:root -passout pass:root

            https://www.ibm.com/support/knowledgecenter/en/SSPH29_9.0.3/com.ibm.help.common.infocenter.aps/t_ConvertthepfxCertificatetopemFormat068.html

            Then next step I am converting the cert.p12 into java keystore using the following command keytool -importkeystore -srckeystore Cert.p12 -srcstoretype PKCS12 -srcstorepass root123 -keystore dex.jks -storepass root111

            https://www.blazemeter.com/blog/how-set-your-jmeter-load-test-use-client-side-certificates/

            The below error is encountered: Importing keystore Cert.p12 to dex.jks... keytool error: java.io.IOException: keystore password was incorrect

            Can someone let me know where I am going wrong.

            Contents of clientA-crt.pem

            -----BEGIN CERTIFICATE----- some alphanumeric values -----END CERTIFICATE-----

            Contents of clientA-key.pem

            -----BEGIN RSA PRIVATE KEY----- some alphanumeric values -----END RSA PRIVATE KEY-----

            ...

            ANSWER

            Answered 2020-Jan-27 at 08:20
            1. You don't need to convert PKCS12 keystore into a JKS keystore, JMeter can deal with both types, moreover it's recommended to use PKCS12 as JKS is a proprietary format. You just need to "tell" JMeter to use PKCS12 format via system.properties file

            Source https://stackoverflow.com/questions/59926309

            QUESTION

            LoadRunner 12.00 - Error: Server Handle has not been allocated (NULL)
            Asked 2020-Jan-09 at 15:21

            I have recorded a script using Oracle 2 Tier protocol in LoadRunner 12.00. Here's a small snippet of the code where the script fails:

            ...

            ANSWER

            Answered 2020-Jan-09 at 15:21

            OK, Let's look at the example code for lrd_server_attach() and then your code

            First, the example

            Source https://stackoverflow.com/questions/59659945

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            Buffer overflow in HP LoadRunner 11.52 allows remote attackers to execute arbitrary code via unspecified vectors.
            Unspecified vulnerability in Virtual User Generator in HP LoadRunner before 11.52 Patch 1 allows remote attackers to execute arbitrary code via unknown vectors, aka ZDI-CAN-1833.
            Unspecified vulnerability in Virtual User Generator in HP LoadRunner before 11.52 allows remote attackers to obtain sensitive information, modify data, or cause a denial of service via unknown vectors, aka ZDI-CAN-1851.
            Unspecified vulnerability in Virtual User Generator in HP LoadRunner before 11.52 allows remote attackers to execute arbitrary code via unknown vectors, aka ZDI-CAN-1850.
            Unspecified vulnerability in Virtual User Generator in HP LoadRunner before 11.52 allows remote attackers to execute arbitrary code via unknown vectors, aka ZDI-CAN-1832.
            Unspecified vulnerability in HP LoadRunner before 11.52 allows remote attackers to execute arbitrary code via unknown vectors, aka ZDI-CAN-1671.
            Unspecified vulnerability in HP LoadRunner before 11.52 allows remote attackers to execute arbitrary code via unknown vectors, aka ZDI-CAN-1670.
            Unspecified vulnerability in HP LoadRunner before 11.52 allows remote attackers to cause a denial of service via unknown vectors, aka ZDI-CAN-1669.
            CVE-2017-5789 CRITICAL
            HPE LoadRunner before 12.53 Patch 4 and HPE Performance Center before 12.53 Patch 4 allow remote attackers to execute arbitrary code via unspecified vectors. At least in LoadRunner, this is a libxdrutil.dll mxdr_string heap-based buffer overflow.
            Unspecified vulnerability in the Agent in HP LoadRunner before 9.50 and HP Performance Center before 9.50 allows remote attackers to execute arbitrary code via unknown vectors.
            CVE-2016-8512 CRITICAL
            A Remote Code Execution vulnerability in all versions of HPE LoadRunner and Performance Center was found.
            A Remote Cross-Site Scripting (XSS) vulnerability in HPE LoadRunner v12.53 and earlier and HPE Performance Center version v12.53 and earlier was found.
            CVE-2016-4360 CRITICAL
            web/admin/data.js in the Performance Center Virtual Table Server (VTS) component in HPE LoadRunner 11.52 through patch 3, 12.00 through patch 1, 12.01 through patch 3, 12.02 through patch 2, and 12.50 through patch 3 and Performance Center 11.52 through patch 3, 12.00 through patch 1, 12.01 through patch 3, 12.20 through patch 2, and 12.50 through patch 1 do not restrict file paths sent to an unlink call, which allows remote attackers to delete arbitrary files via the path parameter to data/import_csv, aka ZDI-CAN-3555.
            CVE-2016-4359 CRITICAL
            Stack-based buffer overflow in mchan.dll in the agent in HPE LoadRunner 11.52 through patch 3, 12.00 through patch 1, 12.01 through patch 3, 12.02 through patch 2, and 12.50 through patch 3 and Performance Center 11.52 through patch 3, 12.00 through patch 1, 12.01 through patch 3, 12.20 through patch 2, and 12.50 through patch 1 allows remote attackers to execute arbitrary code via a long -server_name value, aka ZDI-CAN-3516.
            Unspecified vulnerability in HP LoadRunner before 11.52 allows remote attackers to execute arbitrary code via unknown vectors, aka ZDI-CAN-1736.
            Unspecified vulnerability in HP LoadRunner before 11.52 allows remote attackers to execute arbitrary code via unknown vectors, aka ZDI-CAN-1734.
            Unspecified vulnerability in HP LoadRunner before 11.52 allows remote attackers to execute arbitrary code via unknown vectors, aka ZDI-CAN-1705.
            Unspecified vulnerability in HP LoadRunner before 11.52 allows remote attackers to execute arbitrary code via unknown vectors, aka ZDI-CAN-1690.

            Install loadrunner

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/danwrong/loadrunner.git

          • CLI

            gh repo clone danwrong/loadrunner

          • sshUrl

            git@github.com:danwrong/loadrunner.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link