Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.
In an APEX development project Automated unit testing Simon Boorsma Senior Technology Specialist Oracle  at Sogeti Netherl...
Various forms of testing <ul><li>User or acceptance test </li></ul><ul><li>Test by  (key)end users </li></ul><ul><li>Funct...
Unit testing - Problems <ul><li>Data dependent behavior </li></ul><ul><ul><li>Content of tables, cursor variables and para...
Unit testing – In practice <ul><li>Unit tests not repeated </li></ul><ul><li>When it works, no pro active repeating review...
Unit testing – Test Driven Development <ul><li>Know the expected behavior </li></ul><ul><li>Specify interface carefully </...
Automated unit testing <ul><li>Repeatable unit test cases </li></ul><ul><li>Expandable </li></ul><ul><li>Automatic review ...
PL/SQL unit test framework <ul><li>Tests and suites </li></ul><ul><li>Libraries and Lookups </li></ul><ul><li>Startup and ...
Demonstration
Use in APEX project <ul><li>Logic implemented in PL/SQL packages </li></ul><ul><ul><li>Validations and Processes </li></ul...
staat voor resultaat
Features SQLDeveloper 3.0 <ul><li>Test synchronization </li></ul><ul><li>Advanced Data types support </li></ul>
Próxima SlideShare
Cargando en…5
×

Automated Unit Testing

1.531 visualizaciones

Publicado el

Publicado en: Tecnología
  • D0WNL0AD FULL ▶ ▶ ▶ ▶ http://1lite.top/oL0OV ◀ ◀ ◀ ◀
       Responder 
    ¿Estás seguro?    No
    Tu mensaje aparecerá aquí
  • Sé el primero en recomendar esto

Automated Unit Testing

  1. 1. In an APEX development project Automated unit testing Simon Boorsma Senior Technology Specialist Oracle at Sogeti Netherlands
  2. 2. Various forms of testing <ul><li>User or acceptance test </li></ul><ul><li>Test by (key)end users </li></ul><ul><li>Functional and regression test </li></ul><ul><li>Test of the functionality by test engineers </li></ul><ul><li>Stress and performance test </li></ul><ul><li>Validation technical aspects of the application by DBAs or SAs </li></ul><ul><li>Unit test </li></ul><ul><li>A unit is being validated by a developer </li></ul><ul><li>Without unit testing a weak fundament </li></ul>
  3. 3. Unit testing - Problems <ul><li>Data dependent behavior </li></ul><ul><ul><li>Content of tables, cursor variables and parameters </li></ul></ul><ul><li>No open standard test method </li></ul><ul><ul><li>From the community and the development tools </li></ul></ul><ul><li>Coding is more fun than testing </li></ul><ul><ul><li>Developers opinion </li></ul></ul><ul><li>Time consuming </li></ul>
  4. 4. Unit testing – In practice <ul><li>Unit tests not repeated </li></ul><ul><li>When it works, no pro active repeating reviews </li></ul><ul><li>Limited testcases </li></ul><ul><li>code and behavior coverage of the test cases is unclear </li></ul><ul><li>Manual review </li></ul><ul><li>Review errors can be made </li></ul><ul><li>Unit tests starts after coding </li></ul><ul><li>Pursuit for positive result </li></ul><ul><li>Many bugs during testing causes a loose of focus </li></ul>
  5. 5. Unit testing – Test Driven Development <ul><li>Know the expected behavior </li></ul><ul><li>Specify interface carefully </li></ul><ul><li>Define test cases </li></ul><ul><li>Sufficient code and behavior coverage? </li></ul><ul><li>Implement the unit </li></ul><ul><li>Code to fulfill the test cases </li></ul><ul><li>Specify behavior before start coding </li></ul>
  6. 6. Automated unit testing <ul><li>Repeatable unit test cases </li></ul><ul><li>Expandable </li></ul><ul><li>Automatic review </li></ul><ul><li>Report possibilies </li></ul><ul><li>Run unit tests with just hitting the play button </li></ul>
  7. 7. PL/SQL unit test framework <ul><li>Tests and suites </li></ul><ul><li>Libraries and Lookups </li></ul><ul><li>Startup and Teardown actions </li></ul><ul><li>Validations </li></ul><ul><li>Reports </li></ul>
  8. 8. Demonstration
  9. 9. Use in APEX project <ul><li>Logic implemented in PL/SQL packages </li></ul><ul><ul><li>Validations and Processes </li></ul></ul><ul><li>No tight coupling with APEX </li></ul><ul><ul><li>No use of v(‘ITEM’) </li></ul></ul><ul><li>Support for custom data types </li></ul>
  10. 10. staat voor resultaat
  11. 11. Features SQLDeveloper 3.0 <ul><li>Test synchronization </li></ul><ul><li>Advanced Data types support </li></ul>

×