In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly shows you the "sample analysis of test functions in Visual Studio 2010", which is easy to understand and well-organized. I hope it can help you solve your doubts. Let me lead you to study and study the "sample analysis of test functions in Visual Studio 2010".
On the testing side, VSTS 2010 enhances testing capabilities while simplifying tools to integrate testing throughout the application lifecycle. New features include rapid test-related design and development, test case management, test planning integrated with Team Foundation Server, and ensuring that all updated program code is tested to improve coverage, as well as the addition of a very powerful Microsoft Test and Lab Manager MTLM (Microsoft Test and Lab Manager), which is a stand-alone tool (internal development code "Camano"). Used to create test plans, manage test cases, run test cases, and manage test results.
The VSTS2010 testing framework is shown in figure 1.
Figure 1 VSTS2010 testing framework
Collaboration between testing and developers is emphasized in VSTS 2010. Test impact view (Test Impact View) and code change view (Code Changes View) can avoid the waste caused by running all the tests to verify a small code change, and make the test more efficient. In addition, testers can track and control the Bug life cycle through the Microsoft Test and Lab Manager tool (Plan- > Test- > Track- > Organize). Make a new BUG release through Testing Center, as shown in figure 2.
Figure 2 New BUG entry for Lab Test
Figure 3 Lab Test BUG (Run)
Click "Run" to run the test for the new BUG. The Test Runner interface, as shown in figure 13. Testers can easily capture screenshots and load attachments according to the interface of software products, and can record action BUG capture events or play back Play. The information is stored in this BUG step to complete a BUG capture, and Save and Close is released to developers for BUG repair.
Figure 4 Test Runner-Microsoft Test and Lab Manager
Figure 5 BUG tracking (Track) and management
In addition, VSTS2010 has the flexibility to create Work Item items at Architecture design time, as shown in figure 6.
Figure 6 create the Work Item entry
Microsoft now integrates Visual Studio 2010, system centric Virtual Machine Manager (SCVMM) 2008 and hypervisor Hyper-V to launch its own virtual laboratory automation solution called Visual Studio 2010 Lab Management. Microsoft has also entered the laboratory automation industry to further expand its own virtualization platform and management product line.
The virtual laboratory management architecture is shown in figure 7.
Figure 7 Virtual laboratory management architecture
The Lab Center (Lab Center) in Test and Lab Manager allows users to: 1, create and manage virtual or physical environments, 2, take snapshots of the environment, or return to existing snapshots of the virtual environment, 3, contact virtual machines in the environment through the environment viewer, 4, define test settings for the environment Users can define test scenarios, test suites and test cases in the test center and execute them in the laboratory environment.
Many tools are included in VSTS 2010. When testers test and find a software BUG in a virtual machine environment, they can record the mirror points of the whole environment (multiple virtual machines) with a simple click. He can automatically embed the link to this mirror point as an attachment in the software BUG report, and can choose to include more information, such as video with time coordinates, operation records, historical debugging records, and more. After the developer gets the software BUG report, open it from VSTS2010 IDE and find all relevant information about the BUG at that mirror point. Developers do not have to ask testers exactly what they have done and reset the environment in which BUG is reproduced. Simply double-click the link to get a simple view of the lab environment, which can include multiple virtual machine environments, and he can restore the entire environment state with a single click. Developers have the entire environment, including debugging tools and code in the historical environment, to find the sequence and flow of events that lead to the BUG of the software.
Testers work in a Microsoft virtual lab environment, as shown in figure 8.
Figure 8 VSTS2010 test tool item
Laboratory management can improve the workflow of developers and testers to a certain extent, and help the entire development process become more efficient.
The lab management service in TFS2010 uses the system centric Virtual Machine Manager (SCVMM) to manage the lab infrastructure and configure virtual machines on multiple virtual machine platforms. Lab Management products come with SCVMM.
Microsoft has transformed VSTS2010 into a major tool throughout ALM, so it has strengthened its support for test plans, test cases, related reports, etc., in VSTS2010. In addition to MTLM, VSTS2010 also supports Web Tests, Ordered Test, Generic Test, Unit Test and CodedUI Test. CodedUI Test is a new function that is aimed at functional test engineers and provides them with automated test support.
The VSTS2010 test tool item, as shown in figure 9.
Figure 9 CodedUI Test Automation Test
CodedUI Test in VSTS2010 supports the recording and playback function of automated functional testing software. It will be effective if you can combine CodedUI Test with test case management, and then use some functions on Lab Manager. The CodedUI Test workspace includes software UI recording, event recording and playback, software component property capture and automatic code generation of recorded action events. The CodedUI Test automated test operation area, as shown in figure 10.
Figure 10 CodedUI Test Automation Test
After capturing the UI operation event, click the generate event code button at the right end to generate automated test (C# or VB) code, which is a very Cool feature that makes it convenient for testers and developers to call the test code. Generate the relevant automation code, as shown in figure 11.
Figure 11 generate relevant automation UI code
In VSTS2010, Share Point's Web Access is also very powerful, and various tool functions on the Web side are closely integrated with the software life cycle process. VSTS2010 provides powerful Web process management templates, including BUG process control and tracking. VSTS2010 and Share Point administrative templates, as shown in figure 12.
Instrumental collaboration (PM and Team personnel)
VSTS 2010's collaboration capabilities are enhanced through TFS, including the provision of process templates that allow teams to configure and adopt any Agile software development model they like, but also track based on rich work item links and establish hierarchical work item associations. In application lifecycle management, what we are most concerned about is how project managers participate in the entire lifecycle. Through the close cooperation between TFS, Peoject and Excel, project managers can use their familiar project management tools to obtain project-related information directly from TFS, understand the operation of the project through rich project reports, and accurately plan and manage various tasks in the project. The collaboration between Project and VSTS produces a project plan, as shown in figure 13.
Figure 13 collaboration between Project and VSTS to produce a project plan
In the software development of large development teams, Microsoft OCS (Microsoft Office Communication Server 2007 R2) and Office Communicator 2007 R2 can be combined to maintain real-time communication with various team groups, and automatically remind the project software workflow progress (including e-mails, messages, etc.) in combination with Exchange server2010, which will greatly increase the overall cooperation efficiency of the team. OCS collaborates with VSTS and Exchange server2010, as shown in figure 14.
Figure 14 Microsoft OCS2007 collaborates with VSTS and Exchange server2010
In addition, on the program code management system, TFS2010 provides visual tools to track all changes from branch to product version, as well as various versions of workflow programs to detect errors in advance.
The above is all the contents of the article "sample Analysis of Test functions in Visual Studio 2010". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.