Contributions
Re: Selecting the MainMenu Options
Definitely not! Another way (this will probably work and should have been the first suggestion, sorry hehehe) is working with indexes: To access the "Home" option: YourObj.MainMenu.Click(0); To access a dropdown menu, it works this way: YourObj.MainMenu.Click("[1]|[2]"); This would access the File menu, third option in the dropdown. Let's hope this works!!!2.8KViews0likes6CommentsRe: Selecting the MainMenu Options
Maybe using another method to select items will solve the problem? I usually use .Click(""); E.g: mainmenu = Sys.Process("Teachers.debug").VCLObject("frmMain").VCLObject("barRibbon") mainmenu.Click("Home") mainmenu.Click("File|Functions|XYZ|ABC Navigator") Let me know if that works !2.8KViews1like10CommentsRe: How to change default mapping properties of entire project
Bom dia Pedro, como vai? Para esse problema, o TC tem uma opção chamada NameMapping Templates. (Help online:https://support.smartbear.com/viewarticle/81122/). Para utilizar, acesse o NameMappingdo seu projeto, Right Click na lista de Mapped Objects ou Aliases (não faz diferença) e selecione "Add Template".A partir da tela que abrir, selecione um objeto que possui as propriedades que você deseja que sempre sejam mapeadas, e Add. Agora são mostradas todas as propriedades do campo, mais as colunas Active e Store. Em Active, marque todas as opções que vão ter os mesmos valores em todos os campos, por exemplo, WndClass "Edit" para todos os Edits. Já em Store, marque todos os campos que você quer armazenado, mas que não necessariamente terão o mesmo valor dos demais campos, continuando com o exemplo do Template Edit, poderia ser marcado a opção ControlID "000", que no próximo campo Edit, não será o mesmo valor. Após ter isso gravado, sugiro quefaças a exportação da opção "Root _ NameMapping _ Templates" em um arquivo único, para que possas importar nos projetos futuros, ao invés de refazer toda vez! Se tiver alguma dúvida, estou à disposição!2.1KViews2likes1CommentRe: can not click on SysTreeView32 in MFC application
It seems like it's a mapping problem. :catfrustrated:Try checking all the parents for this object until you find the one that's broken... Sometimes developers can change Index/Control ID or some other options from an object and then you get this kind of error. Hope this helps!925Views0likes1CommentRe: How test complete give Priority on unexpected window
HeyKamal_chennai! If you check Ignore unexpected window, it's going to ignore your General Event as well. If your options to "Press Esc/Enter/Send WM Close/Click on focused control" are checked, it's going to do those before running your G.E. If Stop Execution is checked, it's going to run your event function first, then stop the execution. Hope that helps :)1.1KViews1like0CommentsRe: Run Time Test Data for TestScript
Heyyaseenmd, how's going? What do you mean with "i want to pass the values in run time"? If you meant passingthe values during the execution of your tests, this would be the way to do this: function Test() { var yourInput = BuiltIn.InputBox("Input box", "Input your text:", ""); //do whatever you want with yourInput... } Help for Input Box: https://support.smartbear.com/viewarticle/74068/3.7KViews2likes7Comments