Where can I get HLK and HCK test sets for my driver to do a submission? - testing

I have an application kernel mode driver (software driver, no device) and I want to do hlk and hck testing for it to do a submission of merged packages (signed by EV certificate) to Microsoft.
The problem is that when I install my driver to the test system and select it in HLK Studio, I do not have any playlist to run compatibility test. Where can I get it?
I know that I can download HLK playlist from Microsoft website, but it is not in xml format whereas HLK Stdio supports only xml playlists. I tried to call this file as HLK.xml and add, but Studio writes it cannot find tests with this ids.
And I can't find any playlist for HCK Testing.
Help me, please. Thanks in advance.

Related

Automate testing with out installing anything on client machine

We have a requirement to automate testing on website with out installing anything on client machine(including with out running driver in client),
I have gone through grid model in selinum, but there we need to run webdriver on client machine which I can't do.
So, I need suggestions how can I automate web site with out installing or running jar or dll on client machine.
I am looking for any possibility injection of automation script from server machine to client.
Try Sikuli Automation tool.
you don't need to install sikuli application in your client machine.
Import sikuli libs with java program - http://sikulix-2014.readthedocs.org/en/latest/faq/030-java-dev.html
Export your program as executable jar and use it in your client machine

Is there a Selenium WebDriver available for the Microsoft Edge browser?

As of the date of this post the name "Microsoft Edge" has just been officially announced as the default browser for the new Windows 10.
It may be premature to ask but I would like to know if a new Selenium WebDriver is available for it and if not, if there is any telling how long we might expect to wait until we see one developed?
(A technical preview of Windows 10 has already been out so this doesn't seem like a foolish question to me.)
Yes, there is a WebDriver implementation for Microsoft Edge. Its initial availability was announced on 23 July 2015. Language bindings in the Selenium open source project have been updated to take advantage of this driver implementation, and those updates have been released in Selenium 2.47. Note that the Java language bindings were re-released as 2.47.1 to correct an initial issue. The initial implementation has limited functionality, but Microsoft is committed to bringing a fully functional driver implementation to fruition, so updates will be forthcoming.
Microsoft has provided MicrosoftWebDriver which can be used for Edge browser.
Correct version of MicrosoftWebDriver needs to be downloaded, based on the OS Build number
Go to Start > Settings > System > About and note down the OS Build number.
Download the proper version of the driver from this link - https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
If the file that's downloaded is .msi, then install it to get the .exe driver. For one of the release, direct .exe can be downloaded.
Once the MicrosoftWebDriver.exe is downloaded, we can use it in our test script using either System.setProperty("webdriver.edge.driver", "driver location") or using environment variable
The sample script would be like this -
System.setProperty("webdriver.edge.driver","C:\\Program Files (x86)\\Microsoft Web Driver\\MicrosoftWebDriver.exe"); //put actual location
WebDriver driver = new EdgeDriver();
driver.get("your link");
Refer this article for detailed information - http://automationtestinghub.com/selenium-3-launch-microsoft-edge-with-microsoftwebdriver/
The Microsoft Edge driver for Selenium can be automatically downloaded (for Java) using the library webdrivermanager as follows:
EdgeDriverManager.getInstance().setup();
The variable webdriver.edge.driver is also exported by webdrivermanager with the proper path of MicrosoftWebDriver.exe.
"in case it wasn't clear, Microsoft Edge will have WebDriver support. It isn't available today, but is in development Q's? #msedgesummit" tweet from John Jansen the who is - "Microsoft Engineer. Principal Software Engineer (nee Test) Lead on Project Spartan (nee Internet Explorer)."
You can find him on twitter #thejohnjansen and wait for an announcement :)
Prerequisite: Windows 10 is installed on your machine
Download the specified Microsoft WebDriver server version for your build (In my case it is MicrosoftWebDriver.exe for the Operating System: Windows 10 Pro 64-bit (10.0, Build 14393))
Selenium WD Java code for MS Edge is as follows:
System.setProperty("webdriver.edge.driver", "D:\Ripon\MicrosoftWebDriver.exe");
driver = new EdgeDriver();
As of EdgeHTML version 18 (which arrived with Windows version 1809), there is no longer a standalone driver download. You can obtain the new driver in one of two ways:
Start - type "Manage optional features" - Click "Add a Feature" - Find "WebDriver"
Entering the following on an elevated command prompt - "DISM.exe /Online /Add-Capability /CapabilityName:Microsoft.WebDriver~~~~0.0.1.0"
https://blogs.windows.com/msedgedev/2018/06/14/webdriver-w3c-recommendation-feature-on-demand/#Qj75uxuFHccPmCW5.97
Legacy versions are still available from:
https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
Update:
It appears that version 18 is now legacy and we are back to installing a separate webdriver since the move to Chromium. The link directly above this will still take you to the correct drivers page.
Thanks for your help, I was blocked with my tests, searching for a "EdgeDriver.exe" asked by the selenium EdgeDriver implementation and only find the MicrosoftWebDriver.
I have made this in C# if this can help someone, based on your previous answers :
First, you need to download the MicrosoftWebDriver nuget package, this one will only make a copy of the MicrosoftWebDriver.exe into your destination folder on compilation then
private readonly string _localDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
Environment.SetEnvironmentVariable("webdriver.edge.driver", _localDir + "MicrosoftWebDriver.exe");
var driver = new EdgeDriver();
Hope this can help someone.

Will webdriver script compiled and run on windows will also run on ubuntu?

Currently I use to create and run scripts using java +eclipse+ junit+ webdriver in windows platform.Now if i shift to Ubuntu platform do i need to make any changes in configuration to run all supported browser.
Thanks
Yes it will work.But you need to check the browser for which scripts are designed.As it may be possible that you need to do code changes for web browser drivers for respective operating system.
Also make sure that all the software's java/eclipse/junit/web driver are configured on the linux machine.

Winpe 4 drivers not loading

I need to inject custom drivers to wim file offline.
I'm using standard scenario described on MSDN http://technet.microsoft.com/en-us/library/hh825206.aspx: mount, add-components (WMI, .NET4), add-drivers (signed, work correctly on windows 7 & 2012, x86/64), unmount, makewinpemedia.
However, when I booting from iso (on VMWare), drivers not loading.
Any suggestions?
Thanks.
The most important thing while developing Win PE driver is to follow the architecture(using 32 bit on 64 bit Win PE can cause failures)
Follow the steps:-
Take the 'Custom Windows PE' rescue CD option in the rescue CD wizard.
If you haven't previously installed the Windows Automated Installation Kit (WAIK), then this will need to be downloaded and installed. This is a big (1.7GB) download, so please be patient. The WAIK download dialog will be shown. Just click 'Continue' and be patient while the integration completes.
Once the integration is finished cancel the rescue media wizard.
Download and run 'inject.exe' from here:
http://updates.macrium.com/reflect/utilities/inject.exe
This will automatically inject the drivers into the windows image file (WIM) and will take a few minutes.
Once completed, take the rescue media build wizard again, select the 'Custom Windows PE' and click through to the final page.
Click the 'Rebuild' button to re-integrate the WAIK. This will not need to download and install the WAIK again, so will be much quicker.
Once completed, if you now burn the rescue CD the drivers will be integrated and you should have no problems booting with the CD and recognizing your local RAID volumes.
Have you gone through Windows Automated Installation Kit (AIK) you can have a look at the following link it may help you.
http://kb.acronis.com/content/24254
Windows PE always uses the same basic VESA mode video driver regardless of the card in use.
Please check the link below.
http://technet.microsoft.com/en-us/magazine/cc160920.aspx
This particular link for creation of the ISO with Windows Automated Installation Kit (AIK) can also help you get going.
http://www.bootfromcd.com/compare-solutions/windows-pe-boot-disk-review/
i did spent some time with Win PE,there is a image below are you getting the same message while booting with VM?
There are some additional steps given in the follwing link you can check if it works this way
https://users.emulab.net/trac/emulab/wiki/WindowsByWinpe
another helpful link
http://desktopreality.com/windows-7-deployment-the-easy-way/
Updated the information check if it helps.
Thanks

Get all screenshots in one location with PHPUnit/Selenium tests

I'm using PHPUnit to run my Selenium tests. I'm using captureScreenshotOnFailure to get screenshots when my assertions fail.
I run tests on a Linux box, a Mac and a Windows box. The tests are all run from the Linux (Ubuntu) box.
I would like to get all of the failure screenshots in one location. Everything that I've read, just says that the screenshots are put on the host computer (if the test fails in IE on the Windows box, the screenshots have to be saved on the Windows box).
Does anyone have any great ideas on how I could make my screenshots all "end up" on the Linux box, regardless of where they occurred?
Make a shared drive/folder (e.g. SMB or WebDAV) on linux and mount this on the other computers, so PHPUnit saves the screenshots to this drive.