Presentation is loading. Please wait.

Presentation is loading. Please wait.

DB2 Universal Database Confidential | July 2012 | India Software Lab Click to add text © 2012 IBM Corporation An End to End Windows Automation Framework.

Similar presentations


Presentation on theme: "DB2 Universal Database Confidential | July 2012 | India Software Lab Click to add text © 2012 IBM Corporation An End to End Windows Automation Framework."— Presentation transcript:

1 DB2 Universal Database Confidential | July 2012 | India Software Lab Click to add text © 2012 IBM Corporation An End to End Windows Automation Framework Speaker:Shiva Shankar N

2 DB2 Universal Database Windows Automation Framework | Confidential © 2012 IBM Corporation 2 Agenda  Install FVT Challenges  Windows Automation Framework overview  WAF Architecture  Challenges faced during development  Benefits of WAF  Maintenance and Enhancements  Questions

3 DB2 Universal Database Windows Automation Framework | Confidential © 2012 IBM Corporation 3 Install FVT Challenges Install works simultaneously on multiple releases (main release & multiple fix packs and Early Release Programs) Coverage on many windows platforms Ex. (Win xp, Win 2003, Win 2008, Win 7, Vista, 32/64bit) Coverage on many modes of Installation. Ex. GUI Install, Silent Install, Upgrade Repeatable Work and Time consuming, can get monotonous 5 PD effort required on Candidate image and 2 PD on committed image for validation.

4 DB2 Universal Database Windows Automation Framework | Confidential © 2012 IBM Corporation 4 Windows Automation Framework overview Simple and Smart Architecture Easy to maintain XML Based All the details including Test cases, Verification fields are stored in XML files for better maintenance and modification Component based Approach – making it structural Scheduler Scheduler developed in VB.net, pickups test cases from XML file and assign to Idle Tester machine. Tester. Tester developed in Perl, does the assigned job. Efficient notification & Alert mechanism User gets mail notification and SMS alert on mobile.

5 DB2 Universal Database Windows Automation Framework | Confidential © 2012 IBM Corporation 5 Windows Automation Framework Architecture Scheduler [Job file, Verification file, RFT scripts] Tester Identify free test machine Tester is free Job: J_ESE_GUI_Install Result SMS Tester

6 DB2 Universal Database Windows Automation Framework | Confidential © 2012 IBM Corporation 6 Scheduler

7 DB2 Universal Database Windows Automation Framework | Confidential © 2012 IBM Corporation 7 Tester

8 DB2 Universal Database Windows Automation Framework | Confidential © 2012 IBM Corporation 8 Sample Job name with RFT J_ESE_GUI_Install.xml The testcase and verification steps can by dynamically modified. Sample Job name with AUTOIT J_ESE_GUI_Install.xml The testcase and verification steps can by dynamically modified.

9 DB2 Universal Database Windows Automation Framework | Confidential © 2012 IBM Corporation 9 Sample Install Verify xml file for ESE product --> -->

10 DB2 Universal Database Windows Automation Framework | Confidential © 2012 IBM Corporation 10 Mail notification

11 DB2 Universal Database Windows Automation Framework | Confidential © 2012 IBM Corporation 11 Challenges faced during development Problems 1. Initially the Tester, Installverify, Uninstallverify were developed in VB.net. 2. For any modification had to compile the Tester in VB.net 3. During DB2 uninstallation process DB2 removed certain.net components due to this the component ‘tester’ was getting killed Solutions 1. Developed the Tester, InstallVerify, Uninstallverify in Perl Problems 1. Initially used RFT JAVA scripts for GUI testing 2. Difficult to maintain RFT JAVA scripts and prone to be erroneous Solutions 1. Developed the RFT scripts using Record and Playback options

12 DB2 Universal Database Windows Automation Framework | Confidential © 2012 IBM Corporation 12 About AutoIT… Works on active window. It can also activate Idle window. able to handle un-expected pop-up window’s during DB2 Installation/Update/Upgrade Supports code to handle windows process. Like start a process, Kill a process, Wait for the process to complete. allows you to modify the scripts dynamically during execution. allows you to move mouse over the screen during execution. AutoIT scripts are very small in size, No need to compile, can be edited using any text editor.

13 DB2 Universal Database Windows Automation Framework | Confidential © 2012 IBM Corporation 13 Manual vs Automation effort estimation for galileo ntx64 FP1 testing Test MethodNo Testcases Time required No TestcasesTest MethodNo Testcases Manual RFT AUTOIT 55+ Testcases 1 PM 55+ Testcases Currently RFT supports 32bit, is not supported on 64bit OS 2 PD The test cases which are not part of automation :- Merge module, Non admin, MPP, Multi Product, db2iupdt, db2iupgrade, db2imigr Remarks 12 PD

14 DB2 Universal Database Windows Automation Framework | Confidential © 2012 IBM Corporation 14 Galileo ntx64 FP1 Test cases Test MethodTest case Name No GUI Typical J_ESE_GUI_Install, J_WSE_GUI_Install J_AESE_GUI_Install, J_CLIENT_GUI_Install J_EXP_GUI_Install, J_EXPC_GUI_Install J_DSDRIVER_GUI_Install, J_RTCL_GUI_Install J_CONSV_GUI_Install, J_EXPC_Lite_GUI_Install J_SERVER_ESE_GUI_Install, J_ESE_RCON_GUI_Install, J_ESE_LSDC_GUI_Install 13 GUI CUSTOM & Silent Uninstall J_ESE_CUSTOM_GUI_Install J_WSE_CUSTOM_GUI_Install J_AESE_CUSTOM_GUI_Install J_CLIENT_CUSTOM_GUI_Install 4

15 DB2 Universal Database Windows Automation Framework | Confidential © 2012 IBM Corporation 15 Galileo ntx64 FP1 Test cases Test MethodTest case Name No Silent Install J_ESE_Silent_Install, J_WSE_Silent_Install J_AESE_Silent_Install, J_CLIENT_Silent_Install J_DSDRIVER_Silent_Install, J_RTCL_Silent_Install 6 GUI Fixpak Update J_ESE_GUI_Fixpak_Update J_WSE_GUI_Fixpak_Update J_AESE_GUI_Fixpak_Update J_CLIENT_GUI_Fixpak_Update J_EXP_GUI_Fixpak_Update J_EXPC_GUI_Fixpak_Update J_DSDRIVER_GUI_Fixpak_Update J_RTCL_GUI_Fixpak_Update J_ESE_RCON_GUI_Fixpak_Update J_ESE_LSDC_GUI_Fixpak_Update 10

16 DB2 Universal Database Windows Automation Framework | Confidential © 2012 IBM Corporation 16 Galileo ntx64 FP1 Test cases Test MethodTest case Name No Silent Fixpak Update J_ESE_Silent_Fixpak_Update, J_WSE_Silent_Fixpak_Update J_AESE_Silent_Fixpak_Update J_EXPC_Silent_Fixpak_Update J_DSDRIVER_Silent_Fixpak_Update J_RTCL_Silent_Fixpak_Update 6 GUI Version Upgrade J_ESE_GUI_V97_to_V10_Upgrade J_ESE_GUI_V95_to_V10_Upgrade J_WSE_GUI_V97_to_V10_Upgrade J_WSE_GUI_V95_to_V10_Upgrade J_DSDRIVER_GUI_V97_to_V10_Upgrade J_DSDRIVER_GUI_V95_to_V10_Upgrade J_EXP_GUI_V95_to_V10_Upgrade J_EXP_GUI_V97_to_V10_Upgrade J_EXPC_GUI_V97_to_V10_Upgrade J_V97_ESE_to_V10_AESE_GUI_Upgrade 10

17 DB2 Universal Database Windows Automation Framework | Confidential © 2012 IBM Corporation 17 Galileo ntx64 FP1 Test cases Test MethodTest case Name No Silent Version Upgrade J_ESE_Silent_V97_to_V10_Upgrade J_WSE_Silent_V97_to_V10_Upgrade J_EXPC_Silent_V97_to_V10_Upgrade 3 Machine reboot Testcases RJ_ESE_GUI_Install RJ_ESE_VSAI_GUI_Install RJ_ESE_VSAI_GUI_Fixpak_Update RJ_ESE_GUI_V97_to_V10_Upgrade RJ_EXPC_GUI_V97_to_V10_Upgrade 5

18 DB2 Universal Database Windows Automation Framework | Confidential © 2012 IBM Corporation 18 Feature & Benefits of WAF Faster Execution Easy to create, modify the jobs If required the framework can reboot the machine and continue the test. Does not require continuous monitoring Protect Users from monotonous & repeated work Helps in customer problem simulation Flexible to extend for other testing

19 DB2 Universal Database Windows Automation Framework | Confidential © 2012 IBM Corporation 19 Maintenance and Enhancements Machine Maintenance 1. Windows 2008 box with 4GB RAM 2. Perl 3. RFT 4. cygwin utilities 5. Create OS image and store it @ D:\OS_Image folder Tool Maintenance 1. Need to develop RFT scripts for each product 2. Need to develop Install and UnInstall scripts 3. Need to modify tester code based on the requirement

20 DB2 Universal Database Windows Automation Framework | Confidential © 2012 IBM Corporation 20

21 DB2 Universal Database Confidential | July 2012 | India Software Lab Click to add text © 2012 IBM Corporation Windows Automation Framework The End Thank You

22 DB2 Universal Database Windows Automation Framework | Confidential © 2012 IBM Corporation 22 Defect : Wsdbu00841041 Abstract : Install_FVT:db2_galileo: db2unins with -y option is not uninstalling the product with out user confirmation Owner : Varadarajulu, Gopikrishnan


Download ppt "DB2 Universal Database Confidential | July 2012 | India Software Lab Click to add text © 2012 IBM Corporation An End to End Windows Automation Framework."

Similar presentations


Ads by Google