Winium.Cruciatus | automated testing of Windows application
kandi X-RAY | Winium.Cruciatus Summary
kandi X-RAY | Winium.Cruciatus Summary
English description | Описание на русском.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Winium.Cruciatus
Winium.Cruciatus Key Features
Winium.Cruciatus Examples and Code Snippets
Community Discussions
Trending Discussions on Winium.Cruciatus
QUESTION
I am new to the Winium world. I tried playing with Winium.Cruciatus which seems to be working fine but not perfect. Hence, I am thinking to try Winium.Desktop.Driver.exe which I understand -
is a Selenium-compatible wrapper for Cruciatus, and
it is required to be running separately while development.
However, I wanted to understand that once the development is done and if the solution is deployed in production, will it (Winium.Desktop.Driver.exe) still be required to be running in advance for the solution to work?
My requirement: To automate the installation of a software on multiple VMs (domain joined) from one single VM.
If (yes)
{
- I think it may block the installation if it requires explicit Admin permission to run. As we cannot go on each machine to click on 'Yes', which defeats the purpose of automation.
- Because my environments will be Windows Server 2012 R2 and most of the time they are more restricted than a normal Windows like Win10.
}
If (no)
{
Any specific advantage of using Winium.Desktop.Driver vs only developing with Cruciatus library?
}
...Note: Can someone of high reputation please create a new tag - 'Winium' as it seems this is required now as we already have few more questions on Winium.
ANSWER
Answered 2017-Nov-23 at 09:20Winium.Desktop is a testing tool, it is usually used to automate end-to-end or other functional testing scenarios. When it is used as testing tool, then it is only required during development/testing phase, not in production.
But if you use Winium.Desktop not for testing, but as an automation tool, for example to automate installation of a software, i.e. Winium.Desktop is a core part of solution that runs setup program and clicks next or something, then you will need Winium.Desktop during deployment phase.
Key advantage of Winium.Desktop over Cruciatus is that it provides Selenium interface and works as client-server, which is useful for test automation, as client-server can be scaled, and Selenium interface is well known and there are a lot of tutorials on how to use it.
If you just need to automate installation of some software (i.e. do not need to do actual testing using Winium), I would suggest looking into direction of one of IT infrastructure automation tools like Ansible, Chef, etc.
Regarding admin rights I suggest to open an issues at https://github.com/2gis/Winium.Desktop/issues describing your use case, probably there is a way to run it without admin rights or grant access only once.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Winium.Cruciatus
Add reference to Winium.Cruciatus in UI test project (install NuGet package)
Create a map application
Use created map in tests
Run your tests and watch the magic happening
Add reference to Winium.Cruciatus in UI test project (install NuGet package).
Add reference to Winium.Cruciatus in UI test project (install NuGet package)
Create C# Console Application project and use this code: namespace ConsoleApplication { using System.Windows.Automation; using Winium.Cruciatus.Core; using Winium.Cruciatus.Extensions; public class Program { private static void Main(string[] args) { var calc = new Winium.Cruciatus.Application("C:/windows/system32/calc.exe"); calc.Start(); var winFinder = By.Name("Calculator").AndType(ControlType.Window); var win = Winium.Cruciatus.CruciatusFactory.Root.FindElement(winFinder); var menu = win.FindElementByUid("MenuBar").ToMenu(); menu.SelectItem("View$Scientific"); menu.SelectItem("View$History"); win.FindElementByUid("132").Click(); // 2 win.FindElementByUid("93").Click(); // + win.FindElementByUid("134").Click(); // 4 win.FindElementByUid("97").Click(); // ^ win.FindElementByUid("138").Click(); // 8 win.FindElementByUid("121").Click(); // = calc.Close(); } } }
Run ConsoleApplication and watch the magic happening
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page