bach_lsOccasional ContributorJoined 6 years ago14 Posts14 LikesLikes received3 SolutionsView All Badges
ContributionsMost RecentMost LikesSolutionsRe: How to check if ribbon item is visible? Ok, I think I found a solution to my problem with adressing single item from ribbon: https://support.smartbear.com/testcomplete/docs/reference/test-objects/controls/misc/item-collection/index.html I'll try it out next week, although I'm not sure if I can access Item properties this way Re: How to check if ribbon item is visible? Thank you, but that doesn't answer my question. My main problem is - and maybe I didn't emphasize it enough - that I don't know how to access individual item on the ribbon; or properties of this individual item. How to check if ribbon item is visible? Maybe I'm missing something, but is it possible to check, whether ribbon item is currently visible? There is an ribbon in the app I work on, with complex logic behind hiding and showing various ribbon sections and items - and it messes my scripts big time. Some context: First of all, ribbon has three "layers": something like bookmarks, that can show/hide whole sections, then sections, containing items, and then items. So if I'd like to save document, I'd have to turn on main view of the ribbon, and then in "Document" section click "Save" button. In short, call to ribbon would look like this: Call Aliases.Ribbon.ClickItem("Main|Document|Save", skNoShift) Because of forementioned "complex logic", items on the ribbon can be visible or not, depending on various factors. Is there a way to check their visibility? Re: The operation cannot be performed, because the user session is disconnected. Did you check this? https://support.smartbear.com/testcomplete/docs/testing-with/running/via-rdp/keeping-computer-unlocked.html EDIT: You can couple that with batch command which starts Testcomplete and initializes tests https://support.smartbear.com/testcomplete/docs/working-with/automating/command-line-and-exit-codes/command-line.html On the other hand I don't know wheter this is going to work, since I've never had the opportunity to use Jenkins... It works with regular remote connections though. Re: How to open any file from desktop in keyword test If i'm not mistaken the only method available to you is importing external java library, but a) its usage is restricted to scripts and b) it's a bit complicated. You can find great tutorial online: https://support.smartbear.com/articles/testcomplete/testing-pdf-files-with-testcomplete/. But beware: library referred in this tutorial treats pdfs as txt files, so it is easy to work with text, but no so much when more complicated stuff is involved (fonts, pictures, page layout). I don't believe you can achieve something like that in keyword tests without paying for add-on. Re: System cannot find the path specified for existing csv file Hi Sonya, after some reading I found out that TortoiseGit's process called TGitCache.exe can generate problems similar to what I've been experiencing. I've killed it and prevented from running again: I hope it'll solve my problem. Re: System cannot find the path specified for existing csv file I'll try disabling the integration some time next week and see if it'll change anything. Thank you for your reply. System cannot find the path specified for existing csv file I get this message at random and have no clue why. Context: let's say I have local variable in Keyword Test called "defaultDbAccess" and it's of DBTable type. As its default value I set path to viable csv file with all the data needed. It works fine for most of the time, but Test Complete "randomly" returns error from title: "System cannot find the path specified". After the error next run will go smoothly, with no problems in locating file. Can it be the problem with initializing variable with default value, instead of explicit call in Keyword Test? I also use git integration and thought it may be problem with some random locks - but why would they occur, and why would they disappear..? I wish I could give you more information. SolvedRe: DotNet Object Recognition and Mapping In my case it was problem with version control. If you're using it, go to Tools > Options > Source Control and untick checkbox "Bind new items to SCC automatically". You'll probably need to restart Test Complete. Re: Automate NameMapping of objects? If I may ask, why is that better than mappping your program as you test different parts of it? Don't you use recorder functionality?