发明名称 AUTOMATIC REPAIR OF SCRIPTS
摘要 A method and associated system for repairing a running script. A missed object is detected among one or more objects of the running script, the missed object being unrecognized from an original object of a previous running of the script. A change type of the detected missed object is determined. The script is repaired based on the change type.
申请公布号 US2016306732(A1) 申请公布日期 2016.10.20
申请号 US201615191633 申请日期 2016.06.24
申请人 International Business Machines Corporation 发明人 Gao Xue F.;Guan Chengen;Zhang Xiao D.;Zou Hai B.
分类号 G06F11/36 主分类号 G06F11/36
代理机构 代理人
主权项 1. A method for repairing a script, comprising: detecting, by a processor of a computer system, a missed object among one or more objects of a running script that is running in the computer system, said missed object being unrecognized from an original object of a previous running of the script; said processor determining a change type of the detected missed object; and said processor repairing the script based on the change type, wherein said determining the change type of the missed object comprises: determining whether a height of a new hierarchical structure including the missed object has changed as compared with a height of an original hierarchical structure including the original object, said original hierarchical structure and the new hierarchical structure being hierarchical structures formed by the one or more objects of the running script together with the missed object before and after said detecting respectively;if it is determined that the height of the new hierarchical structure has changed then marking the change type of the missed object as a hierarchy change;if it is determined that the height of the new hierarchical structure has not changed then determining whether a value of an object at a lowest hierarchy in the new hierarchical structure has changed;if it is determined that the height of the new hierarchical structure has not changed and that the value of the object at the lowest hierarchy in the new hierarchical structure has changed, then determining whether a class of the object at the lowest hierarchy in the new hierarchical structure has changed and if so then marking the change type of the missed object as a class change and if not then marking the change type of the missed object as a recognition property change;if it is determined that the height of the new hierarchical structure has not changed and that the value of the object at the lowest hierarchy in the new hierarchical structure has not changed, then determining whether at least one object upwards along the new hierarchical structure starting from a parent object at the lowest hierarchy has changed and if so then marking the change type of the missed object as said hierarchy change and if not then marking the change type of the missed object as no change.
地址 Armonk NY US