Questions tagged [visual-testing]

Visual testing, a form of user interface (UI) testing in software development, is how developers ensure that an application appears to the end-user as it was originally intended. This could involve manual verification using your eyes or programmatically interpreting images of application screens.

9 questions
25
votes
1 answer

How to unit test image processing code?

I'm working in image processing (mainly OCR) and I wonder how I should integrate unit tests in my development. I'm already using unit tests for more "common" type of code but when dealing with image processing code I'm not sure how to deal with it.…
rold2007
  • 375
  • 1
  • 3
  • 7
12
votes
4 answers

How can you TDD for a bug that can only be tested after it has been fixed?

Here's one example: My web application contains draggable elements. When dragging an element, the browser produces a "ghost image". I want to remove the "ghost image" when dragging and I write a test for this behaviour. My problem is that I…
Maxime Dupré
  • 163
  • 2
  • 15
12
votes
1 answer

Does the games industry use automated testing for visual parts of games/rendering? How?

Some parts of a game are easy to test in an automated way (logic, maths, input handling); but there's also a lot that's purely visual and not easily testable. I would be surprised if the games industry left all of this to manual testing; there's…
8
votes
1 answer

Unit testing on visualization (3D graphics) frameworks

This is a follow up to this question. There I was asking how to do unit testing when you have a library of scientific algorithms. I have a similar problem now but with a different project. I'm working on a 3D graphics engine framework abstraction…
Alejandro Piad
  • 405
  • 3
  • 8
7
votes
2 answers

TDD for Graphics application

I have googled and read few articles about the TDD for UI. I am not very much clear about how to start the implementation of the Graphics Application using Test Driven Development or how to write unit test cases for graphics application. The main…
Bhalchandra K
  • 235
  • 1
  • 7
6
votes
2 answers

Automated testing of programs with graphical output

I am a lecturer for a post-graduate module where I expect my students to write Python code that replicates examples from the textbook. The project has been running for a couple of years and this year I want to introduce more automated testing. The…
3
votes
1 answer

How to test UI frameworks

I am currently working on a library that provides functionality for interactive terminal applications. For now, I implemented functionality for reading an arbitrary keypress from the User to the application as well as setting the currently active…
3
votes
1 answer

In what ways can I test an image slideshow javascript code?

I have a slideshow of images (and links) on a page. These images are part of a JSON response to a request sent after the page loads. The slideshow is set to play at an interval of 2 seconds. The slideshow can be paused, played over, and all other…
Rahul
  • 161
  • 3
-1
votes
2 answers

How to best do cross-browser cross-platform visual CSS regression testing?

Background: Visual CSS regression testing is where you screenshot (part of) one version of a webpage in a browser and compare it against a screenshot of the previous version of the same webpage in the same browser. This prevents unintentional…