Functional testing of Java applications David Maroshi Technical

  • Slides: 37
Download presentation
Functional testing of Java applications David Maroshi Technical Sales Eng

Functional testing of Java applications David Maroshi Technical Sales Eng

The importance of complete testing: Hidden bugs Design A B C D E F

The importance of complete testing: Hidden bugs Design A B C D E F G Build 1 Ö x Build 2 Fail Ö change Ö Build 3 Build 4 Results Pass Fail Test Total: Ö change x fix Ö Ö change Ö Functional testing of Java applications 7 0

The importance of complete testing: Hidden bugs Design Build 1 A Ö B x

The importance of complete testing: Hidden bugs Design Build 1 A Ö B x C D E F G fix change Build 2 Build 3 Ö Ö Build 4 Results Ö But it used to work. . . Ö Ö change x fix Ö Pass Fail Perception 7 0 Reality 5 2 Ö Ö change Ö Functional testing of Java applications

The challenge of manual testing with short test cycles Tests Manual testing Rerun the

The challenge of manual testing with short test cycles Tests Manual testing Rerun the first tests and. . . Time Build 1 Functional testing of Java applications

The challenge of manual testing with short test cycles Tests Manual testing can’t keep

The challenge of manual testing with short test cycles Tests Manual testing can’t keep pace! . . . the new tests. . . take more time Time Build 1 Build 2 Build 3, 4, 5, 6, 7, 8 Build 9 Functional testing of Java applications Build 10

 הכלים הקיימים היום בשוק תסריטים עמידים לשנויים שפת תכנות סביבת פיתוח קנייני הכלי

הכלים הקיימים היום בשוק תסריטים עמידים לשנויים שפת תכנות סביבת פיתוח קנייני הכלי ++ קנייני Mercury Winrunner + קנייני +++ קנייני VB script Mercury Quick. Test ++++ Eclipse Java IBM Rational XDE Tester SQA Basic IBM Rational Robot Functional testing of Java applications

Integrations: XDE Developer/Web. Sphere Studio/Eclipse Multiple Views to track all test assets Powerful Debugging

Integrations: XDE Developer/Web. Sphere Studio/Eclipse Multiple Views to track all test assets Powerful Debugging Code Assist Technology Clear. Case Source Control Integration Functional testing of Java applications

Extensible development § Eclipse Community 4 More then 300 Plug-Ins 420` Test related §

Extensible development § Eclipse Community 4 More then 300 Plug-Ins 420` Test related § Some Testing related Plug-Ins 4 Junit (installed by default) 4 Test Metrics 4 Hyades Functional testing of Java applications

Script. Assure: Lowers script maintenance Version 1. 0 Version 2. 0 No User Intervention

Script. Assure: Lowers script maintenance Version 1. 0 Version 2. 0 No User Intervention Required Tester Sees XDE Tester Sees Determine s Match Functional testing of Java applications

Script. Assure: Dynamic data testing Order ID changes with each order placed § Dynamic

Script. Assure: Dynamic data testing Order ID changes with each order placed § Dynamic data/content matching Test Fails Passes when comparing static pattern baseline to dynamic data § Use pattern matching technique to verify dynamic data § § Instead of validating “Order ID 230”, validate “Order ID ###” This allows for a wide variety of acceptable responses and pattern matching when validating the application’s behavior Functional testing of Java applications

Clear. Case Integration - Version History Show History View § תאריך השינוי ושם המשנה

Clear. Case Integration - Version History Show History View § תאריך השינוי ושם המשנה , שם , סוג : מציג את פרטי האובייקט 4 Right click on a test script then select Team Show History Functional testing of Java applications

Clear. Case Compare § ניהול גרסאות של תסריטים – בדיקת השינויים בין גירסה נוכחית

Clear. Case Compare § ניהול גרסאות של תסריטים – בדיקת השינויים בין גירסה נוכחית לגירסה כלשהיא )סקריפט ( או אובייקט § To access: 4 From Show History view, select elements to compare, then right click and select Compare Selected Versions or 4 Right click test script in Datastore Explorer then select Team Compare with Previous Functional testing of Java applications

Object Map – find associated scripts איתור כל התסריטים בהם נמצא אובייקט מסוים Open

Object Map – find associated scripts איתור כל התסריטים בהם נמצא אובייקט מסוים Open map and select Test Object Associated Scripts User will see list of all script associated with the map Functional testing of Java applications

Object Map Merging § יצירת מפה חדשה ואיחוד מפות 1. Select File New Test

Object Map Merging § יצירת מפה חדשה ואיחוד מפות 1. Select File New Test Object Map then enter new map name and click Next 2. Click Select Test Object Maps…. . to create new map from existing scripts and maps 3. Select scripts and maps to merge 4. Click Connect selected XDE Tester scripts… to update script sources to use new merged map § To merge into an existing map § Right click on the shared map in the Datastore Explorer that you would like to merge into. The above dialog will then display and you can select the scripts and other shared maps that you would like to merge into the selected map Functional testing of Java applications

Updating Recognition Properties עדכון המאפיינים המזהים אובייקט במפת האובייקטים 1 2 1. Click on

Updating Recognition Properties עדכון המאפיינים המזהים אובייקט במפת האובייקטים 1 2 1. Click on object to update (Object map will open with object highlighted) 2. Start AUT from Application menu and navigate to window with object to update 3. Select Test Object Update Recognition Properties 4. Object will 3 4 automatically be highlighted and the wizard on the next slide will display Functional testing of Java applications

Updating Recognition Properties כל הפעילים , תבניות של מאפיינים – המקורי 3 § האשף

Updating Recognition Properties כל הפעילים , תבניות של מאפיינים – המקורי 3 § האשף מציג והמעודכן 5. Can additional recognition properties from the “All Active Properties” panel (double-click or right click on recognition property then select Add to…. ) 6. Select Finish to accept properties in the Updated Test Object Properties panel 5 6 Functional testing of Java applications

Regular Expresion - ( קבוע ב Value) החלף ערך Functional testing of Java applications

Regular Expresion - ( קבוע ב Value) החלף ערך Functional testing of Java applications

Regular Expression Evaluator אכן תואמת RE- § בדיקה אם התבנית שנכתבה ב את הערך

Regular Expression Evaluator אכן תואמת RE- § בדיקה אם התבנית שנכתבה ב את הערך שהתקבל בהקלטה 1. Convert value to a regular expression as normal 2. Right click on the regular expression in a VP or in an object map property value and select Evaluate Regular Expression 3. Enter pattern to match in Match Against Value field and click Evaluate ü Examples are available through the Examples button ü Right click to access common insertion sequences for expressions Functional testing of Java applications

Java language enables powerful test scripting : הינם Rational XDE Tester - § התסריטים

Java language enables powerful test scripting : הינם Rational XDE Tester - § התסריטים ב קלים לקריאה והבנה 4 Java ניתנים להרחבה בקלות ע"י קידוד 4 Functional testing of Java applications

Leveraging existing Java assets § Rational XDE Tester can test against the Java JDK

Leveraging existing Java assets § Rational XDE Tester can test against the Java JDK database utility § Enable complete database testing Functional testing of Java applications

The evaluation process פנה לאיש מכירות וקבל עותק של המוצר § § התקן והתאם

The evaluation process פנה לאיש מכירות וקבל עותק של המוצר § § התקן והתאם לסביבה Help Welcome…Rational XDE Tester 4 Help Getting Started with XDE Tester 4 § התחל בבדיקות Help XDE Tester Quick Tour § חומר רקע וחומר מקצועי נוסף Developer. Wroks Rational XDE Tester http: //www. ibm. com/developer. Works Functional testing of Java applications

 הדרכה והשתלמויות שלוש רמות התקדמות Web-based Getting Started With Java and Web-Based Testing

הדרכה והשתלמויות שלוש רמות התקדמות Web-based Getting Started With Java and Web-Based Testing § Web-based and on-site Essentials of IBM Rational XDE Tester § On-site Principles of Test Automation for GUI Testing § Principles of Software Testing for Testers § Functional testing of Java applications

Functional testing of Java applications

Functional testing of Java applications

David Maroshi@il. ibm. com Functional testing of Java applications

David Maroshi@il. ibm. com Functional testing of Java applications