xixi021 发表于 2006-4-28 22:38:09

How to set a argument for a checkpoint

I want to get a text from an edit object and set a checkpoint to compare the text with another text from another edit object.
So firstly I set an object checkpoint : (I know I can get these two texts firstly and then compare them using "if". But I don't want to do that.)
edit_get_text("txtNextPymtDate",outtext);
obj_check_gui("txtExpiryDate", "list3.ckl", outtext, 1);
But later I find the third parameter should be a file name in "obj_check_gui("txtExpiryDate", "list3.ckl", outtext, 1)".
I have to set a single property checkpoint:
edit_get_text("txtNextPymtDate",outtext);
edit_check_info("txtExpiryDate","value",outtext);

我知道检查点可以设置变量,但这里的变量好像并不是我所指的这种变量。
想请教一下,是否可以用object/window checkpoint将某属性的预期值设置成变量?或是如何将该预期值变量设到预期值文件中?是不是要通过另外语句将outtext写进预期值文件中。
说了这么多,不知道大家有没有明白我的意思。

eric.y 发表于 2006-4-29 10:41:33

那你要写个一替换文本的脚本,将compare:字段后替换成你要的预期值

xixi021 发表于 2006-4-29 22:15:07

谢谢指教,我明天先试试看.其实这个问题很简单,有很多其他方法,但我就想试试compare属性.
页: [1]
查看完整版本: How to set a argument for a checkpoint