I am writing tests with Selenium. Before every test, I should open a VPN connection.
To do this, I should navigate to a website link, insert credentials, and when I click on Login, a pop up ask me to open the software on PC. Then it will connect automatically.
Manually with my browser, it works, but when I start the test, it click on Login, and then I get: "JRE" is not installed on your machine. Install "JRE" and retry.
I don't know how to do this.
How can I fix this?
Related
I am doing all the work remotely on my Windows 10 Virtual Machine (Via RDP). Whenever I am logged in to the server, I can see my automation running fine but when I close my RDP connection, the WinAppDriver can't find the elements on the desktop application and thus it stops working.
How can I solve it?
Please let me know If I am missing something.
Thanks
When you disconnect the RDP session windows knows it doesn't have the render the gui, so it doesn't.
The trick is to disconnect a different way. Terminate your connection from the remote sever with this:
%windir%\System32\tscon.exe RDP-Tcp#NNN /dest:console
where RDP-Tcp#NNN is the ID of your current Remote Desktop session, for example, RDP-Tcp#5. You can see it in the Windows Task Manager on the Users tab, in the Session column.
If you need more info have a look at this site https://support.smartbear.com/testcomplete/docs/testing-with/running/via-rdp/keeping-computer-unlocked.html
The link is for test complete not selenium but the steps are sound.
I tried to use Maven on my company's computer. I use the same issue as in stackoverflow another question. I suppose it is the proxy issue. Does anyone know which link I need to ask security to put into white list to use Maven in eclipse?
Thanks
Peter
You need to set the proxy server in eclipse by going to preferences and setting the proxy server your company uses.
If you don't know your proxy server and are using windows run cmd as administrator and execute this command.
netsh winhttp show proxy
If you are using another OS Google is your friend, but you need to set the proxy server in network connections of preferences dialog located in windows -> preferences of eclipse and search for proxy.
Another option is to set proxy in your home directory /.m2.settings.xml here is an exmaple
https://www.mkyong.com/maven/how-to-enable-proxy-setting-in-maven/
I have some code written in selenium and using chrome driver. I am able to successfully run it and complete my flow when I run it from my system.
But, the flow fails when I try to run it from a remote system. I have the same selenium libraries and the same version of chrome browser and driver installed on the remote system as well.
The exact issue is that selenium opens the application and clicks on a link from a menu drop down. But nothing seems to be happening after it clicks. Nothing happens even when I try to click on the links on the selenium opened browser manually after the flow fails.
But everything works when I try to launch the browser manually from the same remote machine.
Please let me know what could the issue.
Guessing that you are probably running selenium 3.x and probably triggering through selenium remote server, try setting up the flag 'enablePassThrough' to 'false' like this,
java -Dwebdriver.chrome.driver=chromedriver.exe -Dwebdriver.gecko.driver=geckodriver.exe -jar "selenium-server-standalone-3.5.3.jar" -enablePassThrough false
More details here - https://github.com/SeleniumHQ/selenium/blob/ef44fef13349251c410a0d5357b8cd237a122f06/java/CHANGELOG#L20
I am trying to establish a connection between my client app running on my android mobile and a server running on my windows 7 PC.
I am new to android and so while looking for some client server tutorial, got the below 2 links.
http://www.compiletimeerror.com/2013/09/creating-java-web-service-using-axis-2.html
http://www.compiletimeerror.com/2013/09/accessing-web-service-from-android.html
Here, server is developed on java and published using axis2 webservice. I followed the tutorial and could develop the similar client and server which runs fine on the emulator. But if I try to access the same using my android mobile it is not working. My mobile is unable to speak to the localhost on my PC.
What I am doing here is,
1. Connected both my PC and mobile to same WIFI network.
2. Connected the mobile to PC using USB.
3. Started the Server on Tomcat
4. Running the Client Project from eclipse and selecting my mobile as target.
Below is my published webservice URL which I am calling from client code,
http://192.168.0.3:8080/MyWebService/services/WebService?wsdl
Here 192.168.0.3 is my PC IP
Please let me know what am I doing wrong here?
Windows 7 might block port 8080. You could test that your port is open from another pc using
telnet 192.168.0.3 8080
or from android using this code.
If 8080 is blocked, then you may want to open it using these steps:
Open Windows Firewall by clicking the Start button Picture of the Start button, and then clicking Control Panel. In the search box, type firewall, and then click Windows Firewall.
In the left pane, click Advanced settings. Administrator permission required If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
In the Windows Firewall with Advanced Security dialog box, in the left pane, click Inbound Rules, and then, in the right pane, click New Rule.
Follow the instructions in the New Inbound Rule wizard.
Note: You must be sure beforehand that your android device is connected to the same local area network or wifi.
Try to access your URL
http://192.168.0.3:8080/MyWebService/services/WebService?wsdl
from your android browser. If you are getting an xml page, then it's not the network problem. If it's network problem, try restarting your local server and changing firewall and router configurations.
You have to provide more information to get a specific answer.
If everything is fine then u should check your Android App.
U have to add the following permission for Internet access.
<uses-permission android:name="android.permission.INTERNET"/>
So I wrote this jar that interacts with a database and also serves as a server. Problem is that I can only interact with that jar when I'm on the lan or run the jar from a different computer. The system with the problem is running windows xp with the firewall disabled and yes it is correctly set up with the router as I can launch a web server and view it remotely. I have no clue what the problem would be as the firewall is disabled and the jar works on other computers on the same network.
Note: I was noticing an exception "java.net.SocketException: Address family not supported by protocol family" earlier
1.Open Network Connections
2.Right-click any local area connection, and then click Properties.
3.Click Install.
4.In the Select Network Component Type dialog box, click Protocol, and then click Add.
5.In the Select Network Protocol dialog box, click Microsoft TCP/IP version 6, and then click OK
6.Click Close to save changes to your network connection.
Lastly Restart your application
See this: http://www.martinahrer.at/2009/04/16/javanetsocketexception-address-family-not-supported-by-protocol-family-bind/
Generally the problem is related to IPv6 support. Try to google your exception text and I am sure you will find an answer quickly.