Error in JMX file generated from Selenium IDE - plugins

I generated some JMX script from Selenium IDE using Jmeter Plugin for Selenium.
I could able to generate JMX file from IDE and try to run the same in Jmeter. I am getting Unknown host exception in Jmeter.
Do I need to make some special setting in Jmeter?

I don't have any idea what Jmeter Plugin for Selenium is so I would suggest reach out to this plugin developers.
In regards to converting Selenium tests into JMeter, you can just record the test while it is running in the IDE via JMeter's HTTP(S) Test Script Recorder.
Selenium IDE plugin should respect Firefox Proxy Settings so when you run your test in it JMeter will capture the relevant requests and store them in form of HTTP Request samplers.
Another option is using Taurus tool which has Proxy2JMX module allowing conversion of Selenium tests into JMeter .jmx test scripts, as a bonus you will get automatic correlation of dynamic parameters, it means you won't have to work them arround using post-processors, Taurus will do this for you. See How to Convert Selenium Scripts into the JMX Converter article for more details.

Related

How to do Oracle Forms and JavaScript Integration for Java Web Start

Oracle Forms 12C has given little pointers for this at https://docs.oracle.com/middleware/12213/formsandreports/deploy-forms/oracle-forms-and-javascript-integration.htm#FSDEP-GUID-F38EE72E-FE26-49C0-AEC6-F5F9F65FBFFF
I have downloaded the Jetty jar and added to the jnlp files so that it could be downloaded to clients PC, however calling java script via WEB.JAVASCRIPT_EVAL_FUNCTION() gives me FRM-41848 JavaScript Execution is disabled during webstart session.
Any Help/Suggestion?
As stated here:
FRM-41848: JavaScript execution is disabled during webstart session.
Cause: JavaScript integration is not supported when running webstart.
Action: Use a browser if you want to run JavaScript integration with Oracle Forms.
Level: 15
Trigger: ON-ERROR
You'll have to run the application through a web browser.

MQTT Load Testing via Jenkins using JMETER

I'm trying to run MQTT test using JMeter on Jenkins. I've integrated maven and used Github repository to run the script. The problem is when i try to run a simple API test, jenkins automatically creates a .jtl file(provided that i've added post build action) In case of MQTT test script, Jenkins Build is successful but the test fails showing this error " no JMeter files matching '*.jtl' have been found.". Why is it so???
Do you use Jenkins performance plugin? If not you should do it.
Do you run JMeter in the Non GUI mode? If not you have to.
In this article how to run JMeter with jenkins you'll find step by step guide for Jenkins configuration for launching JMeter tests.

Angular cli + protractor + cucumber - selenium

I'm wondering if it is possible to run a setup of angular cli project with cucumber e2e tests, using protractor steps, without using a selenium server. When I search for such configurations, I only find ones that have a seleniumAddress setup.
So, is it possible to run it without it?
Requires a server running W3C WebDriver specifications
From your question, can you run Protractor without a selenium server? Yes, if you are using a browser driver that follows the W3C WebDriver specification. So setting directConnect: true (angular-cli default) in your configuration file basically tells Protractor to launch the driver binary, then Protractor creates a driver provider to talk to that binary.
Driver provider options
The driver providers can be different. Your question also referred to the seleniumAddress. So how does this work? Basically, Protractor reads your configuration file and decides which driver provider to launch. If you are not using directConnect and have decided to use the seleniumAddress option in your configuration then you could be either launching an attached session or a hosted driver. Attaching a session means that you have a previous session running and Protractor will launch tests against the session id. Hosted means that you have started your test against a running selenium standalone server. Usually the selenium standalone server is http://localhost:4444.
There are other types of driver providers to help launch your tests and if you follow the conditional in buildDriverProvider method, you can pick and chose which one you want to launch. Obviously (from the conditional), if you have directConnect and seleniumAddress, you will launch with a direct connect driver provider.
A quick note on webdriver-manager
Also a quick note on webdriver-manager. If you plan to launch your Protractor tests on Firefox, you'll need to download Gecko driver. If you use the seleniumAddress option, you'll also need to download the selenium-standalone server. The angular-cli only downloads chromedriver with the command, webdriver-manager update --standalone false --gecko false. To download the rest, simply remove the flags that are set to false: webdriver-manager update
Cucumber in your configuration
So finally you want cucumber with Protractor. Protractor supports cucumber as a custom framework. You'll need to require the protractor-cucumber-framework. Hopefully you have found this on the configuration in the Protractor-cookbook.
You should add the following to your configuration to get cucumber working:
framework: 'custom',
frameworkPath: require.resolve('protractor-cucumber-framework'),
cucumberOpts: {
compiler: "ts:ts-node/register",
monochrome: true,
strict: true,
plugin: ["pretty"],
require: ['../../stepdefinitions/*.ts', '../../support/*.ts'],
//tags help us execute specific scenarios of feature files
tags: '#AddScenario,#SubtractScenario,#MultiplyScenario,#DivideScenario,#ModulusScenario'
}
You can run protractor tests without selenium server by using directConnect: true in your protractor config. But note this option only currently works with Chrome and Firefox.

How can I get code coverage reports when testing REST API with TestNG?

I have a question that's very similar to what's discussed here:
Integration Test of REST APIs with Code Coverage
I deployed a war file that exposes the REST APIs to a web server and I'm using TestNG to write test cases for the REST APIs. I'm not unit testing - I'm only end-to-end / integration testing. Currently, I'm running test cases from eclipse in my machine.
My goal is to get coverage reports on the TestNG test cases.
Since the tests are local to my machine and the REST API is deployed in another server, EclEmma doesn't provide any meaningful data when I run the tests cases in my machine.
Is there a way to point EclEmma to the web server instead of my local machine and get the code coverage report?
Would it be better/possible to include the tests in the war file and run the tests from the web server? That should allow me to get the meaningful code coverage report, right?
The easiest way forward in cases like this is normally to start the web server inside of your IDE and run tests with coverage measuring in there. Even better to start the web server from within the tests - then a build tool like maven can also do code coverage reporting.

gwt response at run as web application

In my gwt application,i am using php code for back end process...i can get response from that php file when i deploy on iis server...
but i can't get response from that php file when i running from the eclipse...
(i.e)
can get response from this url "http://localhost/sample/index.php"
can't get response from this url "http://localhost:8888/sample/index.php" it returns my php code...
It's probably possible to run PHP on Jetty, too: See these instructions - not sure, if they still work with Jetty 6, and I really haven't tried it.
But I would recommend to simply run a separate PHP server (maybe deployed from a separate Eclipse project). See this GWT FAQ entry: How do I use my own server in hosted mode instead of GWT's built-in Jetty instance
You could use the gwt -noserver option
"The -noserver option instructs hosted mode to not start the embedded Jetty instance. In its place, you would run the J2EE container of your choice and simply use that in place of the embedded Jetty instance."
I don't know if this would solve your problem