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

More Related Content

What's hot (20)

PPTX
Automation test scripting techniques
Zhu Zhong
 
PDF
Top ten software testing tools
JanBask Training
 
PDF
Test Automation
nikos batsios
 
PPTX
ISTQB Advanced Level Test Automation Engineering Training
HiraQureshi22
 
PPTX
Bro, manage test data like a pro!
Mikalai Alimenkou
 
PPTX
Test automation
Xavier Yin
 
PPTX
IGT's Intelligent Automation Framework
greyaudrina
 
PPTX
ISTQB Advanced Test Automation Engineering (CTAL-TAE) Q&A
HiraQureshi22
 
DOCX
Software Testing Tools Training
QEdge Tech
 
PPTX
Continuous improvements of developer efficiency with modern IDE
Mikalai Alimenkou
 
PDF
Test automation methodologies
Mesut Günes
 
PPTX
Mobile Test Automation Framework : Presented By Shankar Garg
oGuild .
 
PPTX
Introduction to Automation Testing
Archana Krushnan
 
PPTX
Test automation within a scrum process
Kushan Shalindra Amarasiri - Technical QE Specialist
 
DOC
Young_Huang_Resume
Young Huang
 
PPTX
Automation testing
Mona M. Abd El-Rahman
 
PDF
Software Test Patterns: Successes and Challenges
Bob Binder
 
PPTX
QA part 2
Wayne Weixin
 
PPT
Guideto Successful Application Test Automation
aimshigh7
 
PPT
Basics-Test Case Writing
Madhavan Karthikeyan
 
Automation test scripting techniques
Zhu Zhong
 
Top ten software testing tools
JanBask Training
 
Test Automation
nikos batsios
 
ISTQB Advanced Level Test Automation Engineering Training
HiraQureshi22
 
Bro, manage test data like a pro!
Mikalai Alimenkou
 
Test automation
Xavier Yin
 
IGT's Intelligent Automation Framework
greyaudrina
 
ISTQB Advanced Test Automation Engineering (CTAL-TAE) Q&A
HiraQureshi22
 
Software Testing Tools Training
QEdge Tech
 
Continuous improvements of developer efficiency with modern IDE
Mikalai Alimenkou
 
Test automation methodologies
Mesut Günes
 
Mobile Test Automation Framework : Presented By Shankar Garg
oGuild .
 
Introduction to Automation Testing
Archana Krushnan
 
Test automation within a scrum process
Kushan Shalindra Amarasiri - Technical QE Specialist
 
Young_Huang_Resume
Young Huang
 
Automation testing
Mona M. Abd El-Rahman
 
Software Test Patterns: Successes and Challenges
Bob Binder
 
QA part 2
Wayne Weixin
 
Guideto Successful Application Test Automation
aimshigh7
 
Basics-Test Case Writing
Madhavan Karthikeyan
 

Similar to Automated Unit Testing (20)

PPTX
Database Unit Testing Made Easy with VSTS
Sanil Mhatre
 
PPTX
#DOAW16 - DevOps@work Roma 2016 - Testing your databases
Alessandro Alpi
 
PDF
SELJE_Database_Unit_Testing.pdf
Eric Selje
 
PDF
Test Driven Development with Sql Server
David P. Moore
 
PDF
utplsql.pdf
vijayv991893
 
ODP
xUnit and TDD: Why and How in Enterprise Software, August 2012
Justin Gordon
 
PPTX
Testing
Sachin Kainth
 
PPTX
Iasi code camp 20 april 2013 marian chicu - database unit tests in the sql se...
Codecamp Romania
 
PPT
Test_Driven_Development_v5.ppt
dheeraj438799
 
PDF
How Unit Testing Strengthens Software Reliability
Shubham Joshi
 
PDF
Becoming a better programmer - unit testing
Duy Tan Geek
 
PPT
A testing framework for Microsoft SQL-Server
elliando dias
 
PPTX
The Test way
Mikhail Grinfeld
 
PPTX
Oracle Unit Testing with utPLSQL
Brendan Furey
 
PPTX
Test Driven Development with SQL
India Scrum Enthusiasts Community
 
PPTX
unit 4.pptx very needful and important p
20EC040
 
PDF
prohuddle-utPLSQL v3 - Ultimate unit testing framework for Oracle
Jacek Gebal
 
PDF
What Is Unit Testing_ A Complete Guide With Examples.pdf
Steve Wortham
 
PPTX
Evaluating Test Driven Development And Parameterized Unit Testing In Dot Net ...
mdfachowdhury
 
PPS
Why Unit Testingl
priya_trivedi
 
Database Unit Testing Made Easy with VSTS
Sanil Mhatre
 
#DOAW16 - DevOps@work Roma 2016 - Testing your databases
Alessandro Alpi
 
SELJE_Database_Unit_Testing.pdf
Eric Selje
 
Test Driven Development with Sql Server
David P. Moore
 
utplsql.pdf
vijayv991893
 
xUnit and TDD: Why and How in Enterprise Software, August 2012
Justin Gordon
 
Testing
Sachin Kainth
 
Iasi code camp 20 april 2013 marian chicu - database unit tests in the sql se...
Codecamp Romania
 
Test_Driven_Development_v5.ppt
dheeraj438799
 
How Unit Testing Strengthens Software Reliability
Shubham Joshi
 
Becoming a better programmer - unit testing
Duy Tan Geek
 
A testing framework for Microsoft SQL-Server
elliando dias
 
The Test way
Mikhail Grinfeld
 
Oracle Unit Testing with utPLSQL
Brendan Furey
 
Test Driven Development with SQL
India Scrum Enthusiasts Community
 
unit 4.pptx very needful and important p
20EC040
 
prohuddle-utPLSQL v3 - Ultimate unit testing framework for Oracle
Jacek Gebal
 
What Is Unit Testing_ A Complete Guide With Examples.pdf
Steve Wortham
 
Evaluating Test Driven Development And Parameterized Unit Testing In Dot Net ...
mdfachowdhury
 
Why Unit Testingl
priya_trivedi
 
Ad

Recently uploaded (20)

PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Advancing WebDriver BiDi support in WebKit
Igalia
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
Biography of Daniel Podor.pdf
Daniel Podor
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Advancing WebDriver BiDi support in WebKit
Igalia
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Ad

Automated Unit Testing

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

Editor's Notes

  • #2: Introduction Introduce yourself Presentation about unit testing in an APEX dev project Presentation focusses on the development process during an APEX project
  • #3: Various forms of testing, all with there own charicteristcs and methods. The basis and fundament of the application is tested/verified by unit tests, done by the developer (peer reviews etc.) Without this basis, the application will be build on a weak fundament. Since the above mentioned tests have another focus and purpose. Stress Test – Real Application Testing
  • #4: Unit testing in a Oracle environment is tricky and therefor not done automatically . Most units are highly data dependent. Making it harder to isolate certain testcases and scenarios From the most used development tooling there is no open standard unit test method, like Java has Junit, which is available (with plugins) in most IDEs
  • #5: When looking in projects I have worked with, I see many problems when unit / system testing is being done - the created tests are not repeated, once it works it is done and no pro active retesting is done in case the software is changed - Mostly the tests are performed manually, mostly because of the high data dependent, and the developer has to validate if the outcome is confirm the expected result. - The test cases that are being tested are limited, it is hard to estimate if the tests cover all behavior of the unit Unit testing must be part of the developmentprocess
  • #6: Sogeti Nederland B.V.
  • #7: Sogeti Nederland B.V. So why we want to atomate this part of the development process - repeatable test cases and unit tests saves time - Reporting is possible, telling about how many test cases are ran and what the code coverage is of the unittests
  • #8: Sogeti Nederland B.V. SQLDevloper now has a full PL SQL unit test framework This framework was introduced in SQLDev 2.2 and expanded in 3.0 Framework consist of different components, tests are the unittests , and with suites you are able to combine testcases Libaries and lookups can be used to fulfill the pre and post conditions of the unit In the startup and teardown actions you can code the preconditions, eg. Create d=the data the test case is dependent on With validations the framework can validate the outcome of the unit test automatically
  • #10: Why is this suitable to use in an APEX project - best practice is to implement complex login in PL?SQL packages on the database - We tried to avoid tight coupling with APED, see direct reference item values or collections - within SQLDev 3.0 the framework has some great new features, for example the supports custom data types and Test synchronization. which makes it more usable
  • #11: http://www.whitehorses.nl/whitebooks/2010/unittesten-sql-developer