18 votes
Accepted

What to look for in code reviews / pull requests?

Here are the top 37 things I check for in Code Reviews All Code Reviews DRY code Code has tests Linter is being used English readable code Lines are not too complex Typos for spelling and grammar ...
Michael Durrant's user avatar
14 votes
Accepted

Moving from Selenium to Protractor

Adding couple notes to Niels's great answer. Protractor wraps WebDriverJS which is Javascript Selenium bindings - in other words, Protractor does interact with a browser through the Selenium ...
alecxe's user avatar
  • 11.4k
13 votes

Moving from Selenium to Protractor

Protractor is Selenium, but then integrated with tooling and helper methods. If you know programming and Selenium it should be relative easy to pick up. Protractor is an end-to-end test framework ...
Niels van Reijmersdal's user avatar
13 votes
Accepted

Test strategy to bring automated tests from UI to lower(API/Unit) layers?

A key strategy for me is to convince the business of what needs to be tested where, otherwise... they'll end up directing testing everything through the UI... So the two key main points I am making ...
Michael Durrant's user avatar
9 votes

What are the tools that we can use to automate, before completion of the development?

You could start with unit tests, while the application is being developed. In Java you can use JUnit for this. If you don't have a fully functioning system yet, you can use mocking to mock objects. In ...
Marit's user avatar
  • 356
8 votes

Moving from Selenium to Protractor

I followed the below transition process myself successfully: Learned basic JavaScript, including basic constructs like variables, loops, conditions, functions. Learned advanced JavaScript, ...
Vishal Aggarwal's user avatar
8 votes

What to look for in code reviews / pull requests?

"Programs should be written for people to read, and only incidentally for machines to execute". -- "Structure and Interpretation of Computer Programs" by Abelson and Sussman UI ...
Vishal Aggarwal's user avatar
7 votes

How much SQL knowledge do I need to learn Selenium Testing

For writing Selenium tests itself, none. Selenium does not use SQL. Now if the application under test uses SQL, maybe you need a bit of knowledge to setup test data for your tests. For basic SQL ...
Niels van Reijmersdal's user avatar
7 votes

Test strategy to bring automated tests from UI to lower(API/Unit) layers?

Estimate working load, how many test cases are there to be migrated from UI tests? Estimate how much time you can spare in each sprint and discuss with your team leader and your fellow members ...
Yu Zhang's user avatar
  • 9,932
5 votes
Accepted

how do perform menu list selection in web application using selenium?

You can use the Actions API for that, given that the browser you use supports it. The following should do the trick with Chrome: Moves the mouse over the "Admin" button Waits until the "User ...
ralph.mayr's user avatar
5 votes
Accepted

How to implement wait using UI Automation

There might be better ways (code-wise), but avoiding Thread.Sleep can be easily done by using SpinWait.SpinUntil which is in the System.Threading namespace. It will loop until either true, or the set ...
FDM's user avatar
  • 5,904
5 votes

Why should we test Web service when web test automation is done?

Web service testing independently is needed to ensure the API calls working as expected independent of the web page. In this way, we can confirm that the API calls are working as expected irrespective ...
Bhavani's user avatar
  • 724
5 votes

Why should we test Web service when web test automation is done?

There are many points where tester doesn't feel confident about the application. When a tester performs Automation testing there may be many challenges so web service testing is still very important ...
Nitin Rastogi's user avatar
5 votes

Is it a good/industry practice to create both UI and API testing projects in one project?

Both approaches have advantages and disadvantages: Separation into multiple projects means better separation of concerns. You can build your framework in a modular fashion like this. Where shared ...
newsn31's user avatar
  • 609
5 votes
Accepted

Which approach should be applied when automating stories? What are the approaches or methodologies for it?

Normal approach should we automate only functional flow not caring about the UI things like font of text, font type of text, color of text, background color, images, different panels on page etc. ...
Brian's user avatar
  • 584
5 votes

Automating Developer Tools?

Selenium 4 alpha version introduces an Interface for Chrome DevTools API. I'm unable to find anything official (still in alpha) but here are some example uses: http://executeautomation.com/blog/...
Mate Mrše's user avatar
  • 4,119
4 votes
Accepted

What to ask programmers before automating with Selenium

Agreeing on good element and attribute identifiers is essential with web applications. Identifying elements is done by developers, designers and automation programmers. In a traditional waterfall ...
Michael Durrant's user avatar
4 votes

How we can verify whether webpage is refreshed or not?

One possible way is to force a change in a parallel session or in the database with a script. Then you can keep polling for some seconds until the new data becomes visible. I would expect the feature ...
Niels van Reijmersdal's user avatar
4 votes

Make code to wait before executing click() command

Waiting for few seconds is fragile. Your Java code is running in some terminal. Make it to prompt for for text input and wait. Entered input will be the solution of the CAPTCHA, which your code then ...
Peter M. - stands for Monica's user avatar
4 votes

How should I set up a test environment before automated tests are run?

Generally you should think of tests as doing Setup Execution Given X, When Y happens, Then expect Z Teardown This actually occurs at two (or more) levels: Entire test suite Certain files, ...
Michael Durrant's user avatar
4 votes
Accepted

Selenium for angular - How to install and run Selenium for Angular E2E testing?

Let's first wrap our heads around the definitions: a lot of different languages have selenium bindings. And JavaScript is no exception - WebDriverJS are javascript selenium bindings - a selenium ...
alecxe's user avatar
  • 11.4k
4 votes
Accepted

Why should we test Web service when web test automation is done?

Actually you should test web application after your WebService testing is done. Web Service is an architectural pattern that just allows you to invoke the functions remotely using a widely known ...
Alexey R.'s user avatar
  • 11.6k
4 votes

Test strategy to bring automated tests from UI to lower(API/Unit) layers?

If I would approach to the goal like yours I would: Introduce some proxy between your front-end and back-end that would log the requests to your Back-End Run all your tests for UI Parse the proxy ...
Alexey R.'s user avatar
  • 11.6k
4 votes
Accepted

How to provide more value from test automation to Dev/entire team?

Test automation is more than automating tests. I recommend you reading James Bach "Agile Test Automation" article: Test automation progresses when supported by dedicated programmers (toolsmiths)....
dzieciou's user avatar
  • 10.5k
4 votes
Accepted

Test users password- static or dynamic

I would recommend taking a step back from the technical implementation of generating password values and consider what are the specific risks you're trying to mitigate with these end-to-end tests. Is ...
Andrew January's user avatar
4 votes

Choosing Testing tools against multiple programming languages

I would approach it from these perspectives: 1. What kind of testing are you doing ? Is it at the unit, integrated or end-to-end level? Is it white, black or grey box?. If it is at the unit or ...
Michael Durrant's user avatar
3 votes

How should I set up a test environment before automated tests are run?

There are several tools available over the web but my favourite one is Octopus Deploy, because after a relative simple configuration it can deploy your build, setting up automatically your testing ...
Luca Giuffrida's user avatar
3 votes

How to automate tests where the initial conditions vary?

Regardless of the method you use to generate your request date, you're going to need to do this somewhat dynamically. The simplest method is in the code to test each scenario, you do a call to get ...
Kate Paulk's user avatar
  • 31.5k
3 votes
Accepted

AngularJS - automate testing of user interaction with front end

Jasmine+Karma combination is typically used for unit testing of a JavaScript application. But, you are describing tests that involve user interactions which suggests an end-to-end testing tool. And, ...
alecxe's user avatar
  • 11.4k

Only top scored, non community-wiki answers of a minimum length are eligible