Work with C++ std::vector
Hello.
I am testing desktop application, wich using C++ std::vector. But I see in Object Spy only "zMyPair" (in fields) and "push_back" (in methods). How can I execute method "at" or "size"?
Hi,
a) What controls your applications is using and was the application prepared as per requirements: https://support.smartbear.com/testcomplete/docs/app-testing/desktop/visual-c/index.html ?
As I said, the basic approach with TestComplete tests is to emulate the human end-user and in general you should be able to do something like this:
var caption = 'Save';
var button = Sys.Process(<testedProcess>).Form(<testedForm).FindChild(['ObjectType', 'wCaption'], ['button', caption], 20);
if (button.Exists)
button.Click();
else
<Handle button absence>;
b) JavaScript as any Java is a thing of its own and may require some coding specifics: https://support.smartbear.com/testcomplete/docs/scripting/specifics/javascript.html and https://support.smartbear.com/testcomplete/docs/scripting/specifics/jscript.html