Answered question

Not able to record neoload transaction using selenium

After following comments from this post -> http://answers.neotys.com/questions/1389620-automatically-update-json-request-body-application-updated-without-recording-everytime#answer_3136438

I created a dummy maven project but i get the below error:

Exception in thread "main" java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.http://www.http.HttpClient.openServer(Unknown Source)
at sun.net.http://www.http.HttpClient.openServer(Unknown Source)
at sun.net.http://www.http.HttpClient.<init>(Unknown Source)
at sun.net.http://www.http.HttpClient.New(Unknown Source)
at sun.net.http://www.http.HttpClient.New(Unknown Source)
at sun.net.http://www.protocol.http.HttpURLConnection.getNewHttpClie... Source)
at sun.net.http://www.protocol.http.HttpURLConnection.plainConnect0(... Source)
at sun.net.http://www.protocol.http.HttpURLConnection.plainConnect(U... Source)
at sun.net.http://www.protocol.http.HttpURLConnection.connect(Unknown Source)
at com.neotys.rest.client.NeotysAPIClientOlingo.execute(NeotysAPIClientOlingo.java:349)
at com.neotys.rest.client.NeotysAPIClientOlingo.readEdm(NeotysAPIClientOlingo.java:124)
at com.neotys.rest.client.NeotysAPIClientOlingo.<init>(NeotysAPIClientOlingo.java:102)
at com.neotys.rest.design.client.DesignAPIClientOlingo.<init>(DesignAPIClientOlingo.java:79)
at com.neotys.rest.design.client.DesignAPIClientFactory.newClient(DesignAPIClientFactory.java:59)
at com.neoload.userpath.FirstCase.main(FirstCase.java:37)

Please find attached the java file and the image file of arguments in Run configurations of eclipse...

Please have a look and let me know, what I am doing wrong.

Alexis N.
Alexis N.

Alexis N.

Level
2
1255 / 2000
points
Team

Hi,

I think you do not need the first part of the java file where Transactions delays are created with the UserPathBuilder, you just need the Selenium part. Please find the cleaned java class in attachment.

Arguments in Run configurations are good if there is a NeoLoad running on the same machine where the selenium are executed.

Regarding the connection exception, it looks like NeoLoad is not started or the Design API server was not started by NeoLoad.
If your NeoLoad is running and you still have the exception, please share with us the logs of NeoLoad.

Did you find this useful ?

No (0)

Yes (0)

0% of users found this answer useful