I installed and played around with Selenium WebDriver on Visual Studio 2012 (C#) last week and was very impressed by how easy it was to automate browser testing. I now want to find out if I can expand the functionality. I'm hoping someone can point me in the right direction. Here's what I'd like to achieve:
Run Selenium WebDriver tests on remote machines, ideally managed by a central control machine.
Integrate test results with Quality Center or Test Manager
How to automate tasks such as application installer? I realise Selenium can't do this.
Utilize an existing framework that already has functions for common tasks such as batch testing, logging, copying files, etc.
I apologize if my questions are a bit broad but I'm certain others have tried to achieve this with Selenium before.
Your help is very appreciated,
John
Related
The goal is to provide a lightweight application (probably .NET) that will provide very limited functionality to interact with a specific web application in our organization (it's Workday, if that helps.)
We have so far done this successfully using Selenium -- requiring each user to have Chrome installed and - importantly - to have the version of chromedriver.exe that is compatible with their Chromium version. Most of the application consists of chromedriver.FindElementByXPath(x).Click and chromedriver.FindElementByXPath(x).SendKeys(t) statements.
However, it's becoming cumbersome to ensure that the right chromedriver is installed for all the users, and we'd like this application to be agnostic about the browser (or at least, support any installation of Chrome, Edge, Firefox on the user's device.)
So the simple question is -- can we execute simple activities against the site (clicking some of the button tiles and sendkeys to populate textboxes) without Selenium?
I'm looking into possibly using Microsoft UI Automation or something that can simply handle clicks and text entry through GETs and POSTs (and no, using an API is probably not an option.)
Don't work too hard studying the link you provided. Why? Because the question is not asking to automate anything but a browser app. Unless of course your app embeds a browser... Automating desktop applications is difficult but can be done.
I'd look deeply into Microsoft's Playwright. It's a Selenium free product for browser automation. It's current team of engineers are the best in the industry, many of them were on the Puppeteer project at Google. Apart from Cypress, Playwright appears to be best in class now. The problem with Cypress is that you have to run it in a pseudo IDE based in a dedicated browser.
I’ve done some projects with Selenium in C#. But now we are looking what the best strategy is for mobile testning.
Can you give me some advice? I’ve red some tutorials but I really don’t know where to start.
Install Appium server on Mac and point all iOS test to that server? How about the Android tests? Do they also point to the Appium server on Mac?
So you can hear, I need some advice or a really good tutorial in this matter.
Thanks in advance.
What you require is Selenium Grid: https://www.seleniumhq.org/docs/07_selenium_grid.jsp
Read up on this thoroughly, as I guarantee it is what you are looking for. I wrote an automation framework in the Unity game engine to load a game executable onto iOS devices and Android devices.
I physically connected the testable devices to the Macbook that was being used as a server, and Jenkins build agent.
You will want to download the Selenium Grid jar, which is a hub that proxies commands to multiple Appium processes all running on the same machine (each process communicating with a separate device). This server will help Appium to segregate functionality so that multiple Appium processes can run at once, and communicate over WiFi or physical cable connections with attached devices.
Once you are ready, I suggest reading my tutorial on setting up Jenkins with an Appium/Selenium Grid integrated solution. This tutorial is specific to setting up a framework I developed called Trilleon, within the Unity game engine, but the vast majority of this tutorial will not differ at all when you are setting up testing for a regular native application in Appium with Selenium Grid.
https://github.com/disruptorbeam/trilleon/wiki/Setup-Linux-Mac
https://github.com/disruptorbeam/trilleon/wiki/Jenkins-Setup
And here are various samples of bin/bash scripts that I developed (also for this framework, but much of it will match what you need).
https://github.com/disruptorbeam/trilleon/blob/master/server/sh/run-tests.sh
The following will create a node in Selenium Grid. Each instance that is running at a time will need to be registered in this way. Use this to determine how you can fill it out and provide the node json to your Selenium Grid
https://github.com/disruptorbeam/trilleon/blob/master/server/sh/CreateUniqueNodeJson.sh
Here are python scripts launched from Jenkins to run the appium. This will be run by several jobs all running in unison in their own workspace.
https://github.com/disruptorbeam/trilleon/tree/master/server/py
The above python scripts will have a bunch of stuff that is completely irrelevant to you, but it will also have everything you need to launch appium on android or ios devices.
As for mobile testing, I suggest that you could take a free trial on WeTest. It support Appium、Espresso、XCTest and custom environment which could help you complete automation test on a wide range of devices. Visit https://www.wetest.net/products/automation/?utm_source=bn&utm_medium=AM-BN-2
I have a question. Is there anybody here who could at least give me an idea or a video perhaps on how to create a test script from Selenium IDE, converting it into Selenium webdriver, setting it up in the visual studio and successfully running it. Your help is highly appreciated.
There are dozens and dozens of these videos already online. There is no point in using IDE. Go straight to webdriver. You must chose a language to write in first, C#,Java etc. If you don't know either of these, it's best to study these first and then move on to Selenium webdriver.
I suggest C#. You can use the Microsoft virtual academy to learn this from scratch.
Best of luck
-Aaron
What are your experiences with Beta2 of Visual Lightswitch? Can it already be used for real life projects? Does anybody know, when the final (RTM) version will be out?
I am very intersting in using Lightswitch in the future for RAD, but I am a litte bit self-conscious, if the tool is flexible enough for my dividual requirements and if a Lightswitch solution can be extended with own code !? Can it be mixed with "normal" Silverlight?
I am currently in production with a Lightswitch application connected to SQL Server 2008 via IIS. I am using it to create basic stuff for now like orders, invoices. My experience so far is very good considering Beta 2. Small bugs on slower computers but nothing to stop continuing. It will take you longer to build a nice database than to build the front-end application in LS. If you do your db design right, then the rest is easy and flawless. You can extend alot with Lightswitch like using custom Silverlight controls so basically sky is the limit if you know Silverlight programming. This is what I like, I know I can build on top with future options for my app like bing maps, upload pictures or documents.
For me, this is the perfect tool since I am not a super programmer. Once your data is in SQL, then the fun begins, you will be able to create reports via Reporting Services. If you the want to go even further, then create some SSIS`s to automate email report notifications, etc... which is what I am planning to do.
Basically, Lightswitch is driving me crazy because I can now build an app 10 times faster than if I would have to program it in Silverlight.
I don't know the release date.
Francis
Visual Studio LightSwitch 2011 will be launched on July 26, 2011.
http://www.microsoft.com/visualstudio/en-us/lightswitch
I would like to build a browser extension for IE 7/8. I would like to do it using .NET. Do you know of any resources or tutorials that I could reference to do this? I haven't found much.
Thanks!
JP,
One of the main issues that makes IE extensions hard to develop is the need to develop with C, or .NET.
On the other side, FF and Chrome use (to some extent) JS, which is easier, and has a much lower entrance barrier (How many C "web developers" do you know?).
This is one of the issues / obstacle Crossrider is here to solve.
You can create your first IE plugin within minutes. It will save you a lot of research and development time, and you can write your code with Javascript.
On top of that, if you plan this plugin/extension to also work for browsers other than IE then you can develop a cross browser extension once, using an extensive unified API, and we will make it work for Chrome and Firefox.
Chrome and Firefox each one gets a a native extension file (CRX and XPI respectively) while IE a special EXE engine to run your app.
(Disclaimer: I'm a co-founder of Crossrider)
The same question that was asked two years later has the necessary answer. Everyone should refer to this question now:
How to get started with developing Internet Explorer extensions?