Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [selenium]

Selenium is a portable software testing framework for web applications. From Wikipedia: http://en.wikipedia.org/wiki/Selenium_%28software%29

-3
votes
1answer
181 views

TestNG runner when using @DataProvider combined with apache poi does not execute tests sequentially

EDIT: I have an ExcelUtility.java class to get cell data from it and pass it on to the tests methods in my test class. I am reading from 1 excel file. The excel file has 3 worksheets. Every worksheet ...
8
votes
6answers
3k views

Which stage of Agile (SCRUM) should we start creating automation tests?

A little background of me - I'm a manual tester for almost 2 years within an Agile environment using SCRUM (1-2 weeks sprints). So I'm wanting to introduce automation testing in my work using ...
3
votes
1answer
1k views

Simple parallel multithreading script

I'm trying to write a python script that creates 10 threads at a time and runs until I stop it (ie closing the console). I just need it to do basic logging, so when it fails, its just logs a failed ...
1
vote
0answers
59 views

How to improve this web app testing process?

My boss had an idea of simplifying tests to English like statements so that non programmers could write tests as well. We chose Lisp as the syntax in which the tests would be written. This testing ...
1
vote
0answers
34 views

Pros and cons of asserting on the DB level in selenium tests

Consider a Selenium test that does some steps on the UI (e.g. fill a field and then click a save button), and afterwards checks with a DB query if the data entered in the new field was really saved ...
5
votes
2answers
1k views

How to make a webdriver run reliably in Selenium?

I have been having quite a time getting this to work reliably for 100s of thousands of terms and potentially millions of pages per source and ETL the resulting data into a database in an automated ...
1
vote
1answer
417 views

Is using both Selenium and Mocha redundant?

I am learning React+Redux now and came to the testing section. Many people use Mocha or Jest to test React components, so far so good, makes sense. I previously have experience using Selenium and I ...
1
vote
1answer
370 views

Using Selenium in a Web Service

Given that a local copy of the Selenium server and web drivers are required to run an automation test, i.e... junit-4.10.jar selenium-chrome-driver-2.0a4.jar selenium-java-2.53.0-srcs.jar selenium-...
5
votes
1answer
995 views

Automated Tests on Dynamic Content

I'm doing SQA work for several Kendo-based sites that have many tables (some are hand-made by our devs). These tables have a lot of rows, columns, pages, and data filled in them- so I'm basically ...
-1
votes
1answer
60 views

Is there a benefit to using a specific language with Selenium WebDriver?

As I begin to make the leap from the Firefox Selenium IDE to Selenium 2, I'm realizing that a significant portion of tutorials, guides, books, and documentation regarding WebDriver is based in Java; C#...
0
votes
1answer
141 views

Seeking advice on design strategy for Java application

I'm a very new programmer developing my first application in Java as a side project for my employer. I'm a part-time student working full-time hoping to eventually score a developer job, and my ...
0
votes
0answers
41 views

Can Spring be used to gather data from TestNG tests being executed and then input this data in a webpage to show progress of tests?

Can Spring be used to gather data from TestNG tests being executed and then input this data in a webpage to show progress of tests? For example after every test step that is completed, Spring will ...
0
votes
1answer
1k views

UI Testing and Code Coverage [closed]

My company wants me to write UI tests that test the business logic (all of the use cases MUST be independently testable) I decided to do it in selenium. I have managed to create a decent product (as ...
2
votes
2answers
82 views

Is it a bad practice to return third party reference from public method?

Let's consider an example from WebDriver where I create two different classes to deal with page object, one stores the element locator and other actual operations dealing with page - public class ...
3
votes
1answer
113 views

Is it unreasonable to implement a small domain specific scripting language?

At my new job, they are currently spending scores of labor hours that we don't have to do manual QA testing after every build. Nothing is automated at all. (We can only afford three developers, and ...
2
votes
1answer
311 views

How to write tests for browser automation script

I have a couple of scripts (two in Python, one in Java) that use Selenium to drive a browser and download files from a website. I need to do some major refactoring before I do a major expansion, so I ...
3
votes
1answer
61 views

How do I manage state better in front-end tests

I write a lot of front-end tests, and the tests fail really often. To be honest, they're hard for me to write. I feel like I have to do a lot of work keeping track of the state of the page. It seems ...
1
vote
2answers
166 views

Writing Selenium Tests - Modifying Markup Under Test [closed]

We'd like to know what you view as best practices and what has worked for your projects My organization is in the beginning phases of creating a Selenium test suite, and have had some early ...
3
votes
1answer
203 views

Testing async code: are long sleeps acceptable?

I am testing some AngularJS code using Selenium. Angular updates the DOM in unpredictable order, sometimes completely async (via setTimeout), so it is difficult to know when the DOM has been ...
0
votes
2answers
3k views

Selenium Testing w/ dynamically generated element id's: XPATH or CSS selectors?

Background: I'm an intern tasked with learning Selenium; my organization plans on having QA/Testing use it to simplify testing. We use JSF and WebSphere Application Server. One of the persistent ...
4
votes
2answers
4k views

BDD, Cucumber best practices

I'm trying to understand some best practices when it comes to BDD and Cucumber. I've only recently started to use it, and the first feature I have written a test for is testing a search feature, more ...
12
votes
3answers
969 views

Unit Testing Competition

My employers runs a monthly unit testing day competition. One entire day is dedicated to writing unit tests -- obviously we do more testing throughout the month, but this is an entire day -- and the "...
0
votes
1answer
17k views

How do I actually use Selenium to automate UI testing? [closed]

We have a large inventory system where we work and making changes has the possibility to break things in other areas. This happens a lot, and it is hard to manually test for everything every time ...
4
votes
3answers
771 views

Is TDD the best software development philosophy? [closed]

Question: Why not just use BDD-style acceptance tests and do away with unit tests, integration tests, functional tests and all other tests? I have been doing some research into the differences ...
1
vote
1answer
982 views

Splitting single Class into multiple Classes

I am writing automated test scripts with Selenium Webdriver (Python) and I try to follow the correct programming practices, specifically the Object Oriented methodologies, where possible. At the ...
2
votes
1answer
301 views

How do I Create Automated UI test code for application developed using Domain-Driven-Design with very little concrete UI requirements?

We are developing an application using Domain-Driven-Design(DDD). We have to come up with Automated UI Test code. The customer has used 3rd-party GUI Administration template (https://bootstraphunter....
4
votes
2answers
483 views

Whose responsibility is it to create the interface and/or acceptance testing? Developer or QA?

I am a backend developer and always create tests for my applications. Recently I study and apply the interface tests (using selenium), but I doubted whether I who should create these tests, developer ...
4
votes
3answers
3k views

What is the best use case for selenium?

I've been trying to develop web applications while at the same time creating the testing. I understand unit testing, I can declare a test method and test specific methods in my application. But I don'...
5
votes
2answers
646 views

Should I have different automated Selenium tests for different screen resolutions?

A website I'm creating is going to have three breakpoints: desktop, tablet landscape, mobile. Should I write a test for each resolution?
2
votes
0answers
1k views

Creating an automated test framework for UI smoke testing

I am doing my thesis on the subject of automated UI testing at a company that applies continuous integration to their projects. The company builds intranets in Microsoft SharePoint 2013 and my task is ...
0
votes
0answers
94 views

Scheduled website testing: Searching for a lightweight, simple solution

Scheduled website testing: Searching for a simple solution. One of my clients is having some tens of sites, with webform-based landing pages. He wants to daily test 3 different use-cases pre site, in ...
2
votes
1answer
676 views

Automating tests in a browser not supported by selenium

I work on a company that have a payment system that runs under a executable kiosk instance of internet explorer 7. when the application is running the process name is not similar with iexplore.exe or ...
0
votes
1answer
808 views

Selenium-Nunit Program Structure

My office has a suite of web reporting engines written in VB. All in all there's about 300 reports with varying displays depending on the data being input into them. I'm trying to establish an ...
3
votes
3answers
331 views

Should selenium tests be written in imperative style?

Is an automation tester supposed to know concepts of OOPS and design patterns to write Tests in a way where changes & code re-use are possible? For example, I pick up Java to write cucumber step ...
2
votes
3answers
5k views

Should cucumber step definitions in Java be static methods or instance methods?

We are new to using cucumber with selenium to write automated test suites. Our initial approach was to have one java class per feature file. Now we added instance methods in each class for ...
0
votes
1answer
933 views

searching for a user given word in a webpage using c# and selenium

I am trying to develop a selenium application (using c# win forms). So, while the application starts, the users will enter an app name in the text box. I have many fields such as cost, validity etc ...
0
votes
3answers
293 views

Unable to convince on data hiding

I am working on a Selenium + java project where all Web Element in a class are declared as - public class CheckoutPaymentConfirmpage extends WebPage{ public final Button btnPrintorder = new Button("...
0
votes
1answer
451 views

Should tests be in the same Ruby file or in separated Ruby files?

While using Selenium and Ruby to do some functional tests, I am worried with the performance. So is it better to add all test methods in the same Ruby file, or I should put each one in separated code ...
3
votes
2answers
1k views

Which Continuous Integration for Selenium 2 with TestNG

So I have a Selenium Automation project (using Maven). I'd like to be able to set my tests to run overnight and possibly email a report daily to the team. Which CI would be most suitable for TestNG....
6
votes
2answers
708 views

Have I mistakenly assumed that my routines are loosely coupled?

My Selenium test structures goes as - Data Object class - public class RegistrationData { String firstName = "test first name"; String lastName = "test last name"; // Getter Setter Here } ...
2
votes
3answers
366 views

Writing selenium tests, should I just get it done or get it right?

I'm attempting to drive my user interface (heavy on javascript) through selenium. I've already tested the rest of my ajax interaction with selenium successfully. However, this one particular method ...
0
votes
2answers
528 views

Which recorder do I use for Selenium 2 [closed]

We have a web application that we want to start running regression tests on, and have pretty much decided that we will be using Selenium 2. Not all of the testers are programmer savvy. Is Selenium IDE ...
2
votes
1answer
84 views

Automated web tests depending on developer code

When QAs write automated selenium tests to test a multi-layered website (e.g. testing a web app which is on mvs design, spring and database) should the tests make use of existing classes and ...
5
votes
1answer
1k views

Any recommendations for setup/teardown of browser automation testing?

I have been doing some browser automation testing recently using Selenium (and Watin a bit too) and have reached a point where I am looking for recommendations on controlling the environment I'm ...
8
votes
6answers
4k views

Selenium and non technical team members

I work on a team developing a web site with a large number of pages. The QA guy on the team currently runs all of the tests manually. I am thinking of having him create a bunch of Selenium scripts. I ...
23
votes
14answers
4k views

What problem does automated user interface testing solve?

We are currently investigating automated user interface testing (we currently do automated unit and integration testing). We've looked at Selenium and Telerik and have settled on the latter as the ...
25
votes
11answers
3k views

Automated Testing: Explaining its Business Value

To start I don't think this is a repeat of other questions on unit testing. What I'm looking for help with is articulating its value to a team of programmers, analysts, managers and testers. By ...
2
votes
2answers
655 views

Testing website content with graphs

I'm looking for a way to test my webpages that have dynamically generated graphs (using such things like Google Graphs). Does anyone know if there are such tools that exist (perhaps Selenium would do ...
9
votes
3answers
3k views

How can you write tests for Selenium (or similar) which don't fail because of minor or cosmetic changes?

I've been spending the last week or so learning selenium and building a series of web tests for a website we're about to launch. it's been great to learn, and I've picked up some xpath and css ...