发明名称 Test context generation
摘要 A method to generate a human-friendly test context in a test proxy for a function under test may include generating an initial test context of the function under test. The method may also include enhancing a current test context with a new context enhancement. The method may also include adding a hint to the current test context. The current test context may include or be derived from the initial test context.
申请公布号 US9436587(B2) 申请公布日期 2016.09.06
申请号 US201414170217 申请日期 2014.01.31
申请人 FUJITSU LIMITED 发明人 Yoshida Hiroaki
分类号 G06F9/455;G06F11/36 主分类号 G06F9/455
代理机构 代理人 Brennan Maschoff
主权项 1. A method to generate a human-friendly test context in a test proxy for a function under test, the method comprising: generating an initial test context of the function under test; enhancing a current test context with a new context enhancement; adding a hint to the current test context; and performing extended symbolic execution of the function under test using the current test context to identify the new context enhancement, the extended symbolic execution including: determining whether a concrete variable included in a portion of the function under test is a dependent concrete variable based on whether an ability to execute a branch of the function under test depends on the concrete variable;further determining the branch is not executable;in response to determining that the concrete variable is the dependent concrete variable and to determining that the branch of the function under test is not executable, marking the concrete variable as a symbolic variable;determining whether the marked symbolic variable is accessible to the function under test; andin response to determining that the symbolic variable is accessible to the function under test, identifying the symbolic variable as the new context enhancement, wherein the current test context includes or is derived from the initial test context.
地址 Kawasaki JP