Invention Grant
- Patent Title: Scenario-based code trimming and code reduction
- Patent Title (中): 基于场景的代码修剪和代码减少
-
Application No.: US14727898Application Date: 2015-06-02
-
Publication No.: US09436449B1Publication Date: 2016-09-06
- Inventor: Dinesh Chandnani , Kunal Pathak , Ritesh Parikh
- Applicant: Microsoft Technology Licensing, LLC
- Applicant Address: US WA Redmond
- Assignee: Microsoft Technology Licensing, LLC
- Current Assignee: Microsoft Technology Licensing, LLC
- Current Assignee Address: US WA Redmond
- Agent Kevin Sullivan; Kate Drakos; Micky Minhas
- Main IPC: G06F9/45
- IPC: G06F9/45 ; H04L29/08 ; G06F17/30 ; G06F11/36 ; G06F9/44

Abstract:
Debugging and testing are aided by removing portions of software which are not relevant to a particular scenario. Upon replay, scenario behavior occurs. A reduction tool selects a function exercised during the replay, disables it to provide a test version of the software, replays the scenario to the test version to produce a candidate behavior, and compares the candidate behavior to the scenario behavior. When the candidate behavior matches the scenario behavior the tool removes the disabled function, thereby providing a reduced version of the software which is functionally equivalent to the full version but has fewer functions to manage. The tool may also remove unexercised code. Trimming unexercised code and reducing exercised but irrelevant code may be interleaved. Caching, dynamic uniform resource locator mapping, hypertext markup language code refactoring, and/or avoidance of certain random elements may also facilitate exhibiting, testing, or debugging web applications.
Information query