Upgrade to Pro — share decks privately, control downloads, hide ads and more …

C/C++ Code Testing Simplified

C/C++ Code Testing Simplified

We found Swig an effective tool to open an interface such that API tests could be written fast, effectively and validation became easier. Swig supports conversion in many languages. Testers can now leverage to write tests in any high level language like Python, java , c#

B7eb0ce106dd85558c09b7527eebf351?s=128

Pradeep Kumar

June 19, 2014
Tweet

Transcript

  1. SWIG C/C++ Code Testing Simplified ~Pradeep Kumar

  2. About Me Pradeep Kumar contactprad@gmail.com Sr. Software Quality Assurance Engineer

    Autodesk Asia Pte Ltd, Singapore
  3. Agenda • Project Overview • Team Members • Automation Objectives

    • Tools Analysis • SWIG • Sample Code Demo • Q&A
  4. Project Overview • Autodesk Download Manager • Reliable approach to

    download Autodesk products • Saves time by decompressing product files in parallel • Multi Part download • Disaster recovery
  5. Team Members • Product Owner • SCRUM Master • Developers

    • Black box Testers • Grey box Testers • API Tester
  6. Automation Objectives Automation Objectives Faster to Learn Faster to Develop

    Automated Acceptance Test Faster to adapt in team
  7. Tools Analysis

  8. Swig vs Google test Time Effort swig googletest

  9. SWIG • Automatically generates the bindings • Supports c/c++ data

    types including pointers, structures/classes • Supports scripting languages Tcl, Python, Perl, Guile, PHP • Supports Java, Ruby, c# and many more
  10. SWIG – How it works SWIG example.h example.i Other header

    Files example_wrap.cxx example.py C/C++ _example.pyd example.lib example_wrap.cxx
  11. Sample Code Demo

  12. Q/A

  13. References http://www.swig.org/ http://www.swig.org/Doc2.0/SWIGDocumentation.pdf http://www.swig.org/tutorial.html http://www.swig.org/papers/PyTutorial98/PyTutorial98.pdf