会员体验
专利管家(专利管理)
工作空间(专利管理)
风险监控(情报监控)
数据分析(专利分析)
侵权分析(诉讼无效)
联系我们
交流群
官方交流:
QQ群: 891211   
微信请扫码    >>>
现在联系顾问~
热词
    • 3. 发明申请
    • METHOD, SYSTEM, AND COMPUTER PROGRAM PRODUCT FOR GENERATING UNIT TESTING SCRIPTS
    • 用于生成单元测试脚本的方法,系统和计算机程序产品
    • US20090271770A1
    • 2009-10-29
    • US12110401
    • 2008-04-28
    • Yarden Nir-BuchbinderDan PellegOrna Raz-Pelleg
    • Yarden Nir-BuchbinderDan PellegOrna Raz-Pelleg
    • G06F9/45
    • G06F11/3684
    • A method, system, and computer program product are provided for generating unit testing scripts. The method includes receiving programming code having a condition expressed therein, and transforming the code by wrapping the condition into a mock function. The mock function receives a Boolean argument as an input and provides a Boolean value as an output irrespective of a pre-transformed input and a pre-transformed output of the condition. The Boolean value is capable of selectively being the Boolean argument received as the input or a different value specified by a user. The method further includes receiving a user input specifying a behavior relating to how a return value is generated for the mock function. The Boolean value is provided in accordance with the specified behavior. At least one pre-transformation output of the condition prior to the transforming step is direct-function independent.
    • 提供了一种用于生成单元测试脚本的方法,系统和计算机程序产品。 该方法包括接收具有其中表达的条件的编程代码,并且通过将条件包装成模拟功能来转换代码。 模拟函数接收一个布尔参数作为输入,并提供布尔值作为输出,而不管预转换输入和条件的预转换输出。 布尔值能够有选择地作为输入接收的布尔参数或用户指定的不同值。 该方法还包括接收用户输入,指定与如何为模拟功能生成返回值相关的行为。 布尔值根据指定的行为提供。 在变换步骤之前的条件的至少一个预变换输出是直接函数独立的。