Непрерывное тестирование для улучшения качества кода
description
Transcript of Непрерывное тестирование для улучшения качества кода
![Page 1: Непрерывное тестирование для улучшения качества кода](https://reader036.fdocument.pub/reader036/viewer/2022062513/555499f6b4c90502618b45aa/html5/thumbnails/1.jpg)
Marcel Jankie
Solution Architect Code Quality
“Better Software Faster”
International Region
![Page 2: Непрерывное тестирование для улучшения качества кода](https://reader036.fdocument.pub/reader036/viewer/2022062513/555499f6b4c90502618b45aa/html5/thumbnails/2.jpg)
Proactive approach
Requirement Management
Plan Project Develop, Test
and Tune
Test Automate Validate
Maintain and Analyze
MS Visual Studio / Star Team / Team Foundation Server
Caliber RMStarTeam
MSTFS
Silk PerformerDevPartner
TestPartnerSilk Test
SCTM
![Page 3: Непрерывное тестирование для улучшения качества кода](https://reader036.fdocument.pub/reader036/viewer/2022062513/555499f6b4c90502618b45aa/html5/thumbnails/3.jpg)
Your Environment Automated Error Detection
Performance / Memory Analysis Coverage Analysis
coding
Debugging
Testing & Tuning
Deployment
Production
Coverage Analysis VB C++.
NET
Static: Runtime:CodeReview RunTime Detection
(BC)
.NET
Performance AnalysisPerformance ExpertMemory Profiler
VB C+
+ .NET
.NET
Automated Testing
SilkTestST+DP=CIT
System Analysis
System Compare
.C++
![Page 4: Непрерывное тестирование для улучшения качества кода](https://reader036.fdocument.pub/reader036/viewer/2022062513/555499f6b4c90502618b45aa/html5/thumbnails/4.jpg)
• Full 64 bits support• In Depth Source Code Level Info: 851 rules• Structured Call Graph Information• Extreme Powerful Debugger (BoundsChecker)• .NET Memory Leak Detection• Well written Expertise in defect reports• In depth visibility in Memory Management CLR• DiskIO and NetworkIO• System Compare• Technologies evolved over the last 25 years• XML Export and Management Reporting• Distributed Capabilities• Real Agile (TP / Silk / DPS)
Next to MSTS
![Page 5: Непрерывное тестирование для улучшения качества кода](https://reader036.fdocument.pub/reader036/viewer/2022062513/555499f6b4c90502618b45aa/html5/thumbnails/5.jpg)
5
Cont. Integration Testing
• Complement the Continuous Integration methodology• Code analysis during automated tests
• Memory and performance analysis during unit and functional testing • Code coverage analysis during unit testing and functional testing• Code inspections to uncover poor coding practices• Security inspections to detect and remediate security vulnerabilities
• Management visibility into results
Go Live
Plan
Develop
Deploy
Continuous Integration
Unit Test QA Test
Test Assets
Management Visibility
![Page 6: Непрерывное тестирование для улучшения качества кода](https://reader036.fdocument.pub/reader036/viewer/2022062513/555499f6b4c90502618b45aa/html5/thumbnails/6.jpg)
SilkTest 2011
• Record and playback reliable Test scripts• Very flexible choice of scripting language• Save precious Time of Senior team members• Usable for both Developers and non
Developers• Fastest playback engine in the market• SAP support• Rich set of object recognition• Non GUI Testing Capabilities• Data Driven tests• Call VB.NET or C# from Visual Script
![Page 7: Непрерывное тестирование для улучшения качества кода](https://reader036.fdocument.pub/reader036/viewer/2022062513/555499f6b4c90502618b45aa/html5/thumbnails/7.jpg)
Visual Scripting
VB.NET Scripting
SilkTest Classic 4Test
Silk4JJava - Eclipse
Silk4NETC#/VB.NET –
VS2010
Programming power
Ease of use
SilkTest: Total FreedomFour key capabilities
![Page 8: Непрерывное тестирование для улучшения качества кода](https://reader036.fdocument.pub/reader036/viewer/2022062513/555499f6b4c90502618b45aa/html5/thumbnails/8.jpg)
8
![Page 9: Непрерывное тестирование для улучшения качества кода](https://reader036.fdocument.pub/reader036/viewer/2022062513/555499f6b4c90502618b45aa/html5/thumbnails/9.jpg)
SAP Solution Manager = Application Lifecycle Management for SAP
![Page 10: Непрерывное тестирование для улучшения качества кода](https://reader036.fdocument.pub/reader036/viewer/2022062513/555499f6b4c90502618b45aa/html5/thumbnails/10.jpg)
Two working modes- 1. Drive everything out of Solman
Push out of SolMan back into SCTM
![Page 11: Непрерывное тестирование для улучшения качества кода](https://reader036.fdocument.pub/reader036/viewer/2022062513/555499f6b4c90502618b45aa/html5/thumbnails/11.jpg)
2. Work out of SCTM
Pull out of SolMan
Blueprint (Process)
![Page 12: Непрерывное тестирование для улучшения качества кода](https://reader036.fdocument.pub/reader036/viewer/2022062513/555499f6b4c90502618b45aa/html5/thumbnails/12.jpg)
• Internet Explorer 9 Support• Mozilla Firefox 5 and Mozilla Firefox 6 Support• Micro Focus Rumba Support• Microsoft Silverlight Support• User Account Control• 64 Bit Support for Java & .NET Applications
• AWT• SWT
• Swing• Standard Widget Toolkit (SWT)
• WPF• Winforms• SAP
• Adobe Flex 4.x Support
New in SilkTest 2011
![Page 13: Непрерывное тестирование для улучшения качества кода](https://reader036.fdocument.pub/reader036/viewer/2022062513/555499f6b4c90502618b45aa/html5/thumbnails/13.jpg)
Demo CITSub Main()
Shell ("C:\Program Files\Micro Focus\DevPartner Studio\BoundsChecker\bc.exe /B C:\cpwrdemo\nmfile\logfiles\nmfilebc.DPbcl c:\cpwrdemo\nmfile\debug\nmfile.exe")
Playback.AttachTimeOut = 60
Window("Application=NMFILE.EXE Caption=Namefile").Attach' Attach to Namefile WindowWindow.MenuSelect "View~Customer Count"
' Attach to Name Select WindowWindow("Application=NMFILE.EXE ClassName='#32770' Caption='Name Select'").Attach ExecuteCheck "ContentCheckNames"
Button("Caption=OK").Click ' Attach to Info WindowWindow("Application=NMFILE.EXE ClassName='#32770' Caption=Info").Attach Button("Caption=OK").Click
' Attach to Namefile WindowWindow("Application=NMFILE.EXE Caption=Namefile").Attach Window.Close
End Sub
![Page 14: Непрерывное тестирование для улучшения качества кода](https://reader036.fdocument.pub/reader036/viewer/2022062513/555499f6b4c90502618b45aa/html5/thumbnails/14.jpg)
Code Quality Report
![Page 15: Непрерывное тестирование для улучшения качества кода](https://reader036.fdocument.pub/reader036/viewer/2022062513/555499f6b4c90502618b45aa/html5/thumbnails/15.jpg)
Code Quality Report
![Page 16: Непрерывное тестирование для улучшения качества кода](https://reader036.fdocument.pub/reader036/viewer/2022062513/555499f6b4c90502618b45aa/html5/thumbnails/16.jpg)
Coverage Analysis Code Changes
• Volatility• Changed Methods• New Methods• Line Level / Method
Level Information
![Page 17: Непрерывное тестирование для улучшения качества кода](https://reader036.fdocument.pub/reader036/viewer/2022062513/555499f6b4c90502618b45aa/html5/thumbnails/17.jpg)
• VB.NET, C#, ASP.NET• Identifies known and potential problems
– Logic, Portability, Performance, Windows, Standards,Usability and .NET Portability, Security
– Represents collective knowledge from Microsoft, MicroFocus and industry experts
• Code Standardization: Object Naming / Variable Naming• McCabe Cyclomatic Complexity• Static Reference Graph• 851 rules • Regular Expressions Rule Manager• Integrates into VS 2008
and VS 2010 and VS 11
CodeReview
![Page 18: Непрерывное тестирование для улучшения качества кода](https://reader036.fdocument.pub/reader036/viewer/2022062513/555499f6b4c90502618b45aa/html5/thumbnails/18.jpg)
MSTFS Integration
DevPartner
![Page 19: Непрерывное тестирование для улучшения качества кода](https://reader036.fdocument.pub/reader036/viewer/2022062513/555499f6b4c90502618b45aa/html5/thumbnails/19.jpg)
MSTFS Architecture
![Page 20: Непрерывное тестирование для улучшения качества кода](https://reader036.fdocument.pub/reader036/viewer/2022062513/555499f6b4c90502618b45aa/html5/thumbnails/20.jpg)
MSTFS Architecture
![Page 21: Непрерывное тестирование для улучшения качества кода](https://reader036.fdocument.pub/reader036/viewer/2022062513/555499f6b4c90502618b45aa/html5/thumbnails/21.jpg)
MSTFS Architecture
![Page 22: Непрерывное тестирование для улучшения качества кода](https://reader036.fdocument.pub/reader036/viewer/2022062513/555499f6b4c90502618b45aa/html5/thumbnails/22.jpg)
Submit WorkItem
![Page 23: Непрерывное тестирование для улучшения качества кода](https://reader036.fdocument.pub/reader036/viewer/2022062513/555499f6b4c90502618b45aa/html5/thumbnails/23.jpg)
Inside WorkItem
![Page 24: Непрерывное тестирование для улучшения качества кода](https://reader036.fdocument.pub/reader036/viewer/2022062513/555499f6b4c90502618b45aa/html5/thumbnails/24.jpg)
Team Explorer Query Defects
![Page 25: Непрерывное тестирование для улучшения качества кода](https://reader036.fdocument.pub/reader036/viewer/2022062513/555499f6b4c90502618b45aa/html5/thumbnails/25.jpg)
Testing Evolution
• Conventional• Manual Testing• Ad hoc Testing
• Sequential• Waterfall
• Modern• Continuous• Agile• Automated• Efficient
![Page 27: Непрерывное тестирование для улучшения качества кода](https://reader036.fdocument.pub/reader036/viewer/2022062513/555499f6b4c90502618b45aa/html5/thumbnails/27.jpg)