How to divide launching tests for different bit of Windows - webdriver

I've got task for launch test for web on Windows x64 and Windows x86.
I've set up Selenium Grid (1 Hub and two Nodes).
How can i launch tests for Win x64 only?
I didnt find parameter for x64 or x86 when i launch selenium server on Node.

You can try using different platform values
java -jar selenium.jar -role node -hub http://yourhubaddress:hubport/grid/register -browser browserName=iexplorer,platform=win7
For x86
java -jar selenium.jar -role node -hub http://yourhubaddress:hubport/grid/register -browser browserName=iexplorer,platform=XP
Now, in your test you just need to set the correct browserName. Something like
DesiredCapabilities customIECapability=DesiredCapabilities.internetExplorer();
if(propertywhichcontainsbrowseryouwanttorun=x64IE){
customIECapability.setPlatform("win7");
}
else
if(propertywhichcontainsbrowseryouwanttorun="x32IE"){
customIECapability.setPlatform("XP");
}
WebDriver driver = new RemoteDriver("huburl",customIECapability);
This should redirect your tests to appropriate machines.

Related

How do I use Visual Studio 2019 to remotely debug a .NetCore application on a Hyper-V Linux VM?

I am attempting to remotely debug a .NetCore application in Ubuntu Linux from Visual Studio 2019 in Windows 10. I can see the remote ipaddress (ping thru command line). I can RDT to the ipaddress. I can successfully transfer files to it via WinSCP.
I created a simple .NetCore "HelloWorld" app and copied onto the Linux VM.
I used the following commands to build and publish:
dotnet build -r linux-x64
dotnet publish --self-contained -r linux-x64
I ran the following command on the Linux VM to ensure that ssh is functional:
sudo apt-get install openssh-server unzip curl
The app is running on Linux.
From VS I try to attach to the process:
I get prompted for logon:
I get the following error:
Is there a step I'm missing somewhere?
Is there a configuration/permissions issue I am unaware of?
Thanks, JohnB
Microsoft has documented debugging a Linux target from a Windows development machine at https://learn.microsoft.com/en-us/visualstudio/debugger/remote-debugging-dotnet-core-linux-with-ssh?view=vs-2022
Unfortunately, using that method, you will need to manually deploy and manually attach the debugger. If you'd like Microsoft to change that, then it would be wise to upvote this issue: https://developercommunity.visualstudio.com/t/Convenient-way-to-add-a-remote-debug-con/917516
A 3rd party developer has created a Visual Studio extension that provides this missing feature to Visual Studio. It can be downloaded from https://github.com/radutomy/VSRemoteDebugger
I had the same problem initially because I didn't enter the connection target in the first screen.
After having entered the correct target myusername#192.168.178.95 in the first screen the second screen did not show up any longer and I got the expected list of processes

Run ASP.net core on Raspberry Pi 3 with Windows 10 Iot

I am trying to run asp.net core app on Raspberry pi 3 which runs Windows10 IoT .What I have done so far is:
Created a simple Web Api application in Asp.net core in local Windows 10 machine using visual studio.
removed type:platform from project.json file (for self contained deployment)
built and published the application using dotnet publish -c release -r win10-arm
copied the published files to UNC share folder in path
opened the port 5000 in pi powershell session netsh advfirewall firewall add rule name="DNX Web Server port" dir=in action=allow protocol=TCP localport=5000
typed 'C:\PROGRAMS\dnxpi\RasberryService.exe' in powershell session to pi
But it errors
Program 'RasberryService.exe' failed to run: The operation completed successfully.
+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
+ FullyQualifiedErrorId : NativeCommandFailed
Thanks in Advance!!
This github issue states that ARM is not supported ,but is in the road-map of dotnet core. Keeping the issue open for future updates and folks who find the same issue.

8u66 Windows 64-bit packager - install succeeds but application fails to start

My JavaFX Application is installed correctly in Windows 8 (64 bit) but refuses to run !
I use the JavaFX native packager to produce native install bundles for Windows (from an Eclipse / Ant script).
I create my Windows bundle from a 64-bit Windows 7 build machine - JDK used
: 8u66 b02 early access - 64-bit Windows.
Unfortunately there is no logs generated by Windows ! So it's difficult to know the cause of the crash.
For information this is the list of DLL installed :
MSVCP120.dll
MSVCR100.dll
MSVCR120.dll
My problem is similar to this issue (Java Bug system) : https://bugs.openjdk.java.net/browse/JDK-8131321
But this bug normally was fixed !
Any ideas ?

javaFX helloworld jar cannot be ran on different platform

I am new to this JavaFX stuff and not sure if anyone knows what I did wrong. Here is the scenario:
On win 7, used netbeans 8 with jdk1.8.0_05 created a helloworld.jar
On win 7, java -jar helloworld.jar works fine
move the helloworld.jar to Redhat 5.8 and used the same version jdk1.8.0_05, java -jar helloworld.jar . and I see the following error
Graphics Device initialization failed for : es2, sw
Error initializing QuantumRenderer: no suitable pipeline found
Red Hat Enterprise Linux 5.8 is not a supported configuration for JavaFX in Java 8.
Red Hat Enterprise Linux 6.x (and some other Linux variants) is supported.
MidoriKid provides a procedure to allow JavaFX to be used on a Red Hat EL 5.x system in his answer to: running JavaFx jars on redhat 5.8. Note that although the procedure can be followed, it is recommended that you uses more recent RHEL system to run JavaFX in a supported configuration.

Unable to run Javafx from computer by double clicking the jar file

I have created a JavaFx application using Netbeans. It is running fine, if I run the application from Netbeans.But, if I double click the jar file, I am getting error message as
JavaFx 2.1.0 is required to view this content but JavaFx. Get the JavaFx runtime from javafx.com/javafx and run the installer. Then restart the application
But I already have JavaFX runtime installed in my PC. But, if I run the jar file from command line as java -jar MyJavaFxApplication.jar, then it is running properly.
My question is somehow similar to the question "Unable to run JavaFx Jar with JRE7". But that question still unanswered.
My Java version is :
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
Thanks in advance.
If you use NetBeans 8 or JDK 1.8 you have to run the file using Java 8.
If Java 8 is installed on your system and it should be a bundle with NetBeans just point it to your JAVA PATH from Computer Properties Variables.

Resources