Coder Social home page Coder Social logo

tp3-junit's Introduction

TP3_ISO_Junit

Dans le cadre du développement d'une application, quelle qu'elle soit, les tests sont indispensables, et prennent une part non négligeable du développement. Il en existe plusieurs types : unitaires, intégration, fonctionnels, qualification, etc. Aujourd'hui, la plupart sont automatisés, ce qui permet un gain de temps substantiel, ainsi qu'une plus grande fiabilité.

JUnit est un framework open source pour le développement et l'exécution de tests unitaires automatisables. Le principal intérêt est de s'assurer que le code répond toujours aux besoins même après d'éventuelles modifications. Plus généralement, ce type de tests est appelé tests unitaires de non-régression.

Dans ce TP, nous allons nous familiariser avec Selenium avec Junit 5.

L’objectif est d’automatiser le test suivant :

  • Connectez-vous sur l’url https://todomvc.com/
  • Cliquez sur le lien Backbone.js
  • Ajouter plusieurs actions exemples ( Meet a Friend , Buy Meat , clean the car ... )
  • Cochez une ou plusieurs actions
  • Exploitez la méthode ExpectedConditions.textToBePresentInElement afin de comparer le champ x item(s) left par le résultat attendu
  • Exploitez l’annotation @ParameterizedTest afin d’effectuer des tests avec plusieurs technologies dans le site https://todomvc.com/
  • Ajoutez les dependencies appropriés afin d’afficher les rapports Junit.

tp3-junit's People

Contributors

bochra906 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.