Contributions
Shared access to project on network drive
All, I'm sure this is staring me in the face but... I have a TC project on a network drive. When I first opened it, I got the "do you wish to enable shared access for concurrent users" type prompt, to which I said no - at that time, I was the only person working on the project, I saw no need for it! Now there is someone else picking up the project with me - so it would be good to retrospectively enable this option. Can anyone tell me where I should be looking?!? Thanks!4.9KViews0likes1CommentRe: Stop on Error.... different levels?
Hi Jose, Thanks for that - a good option indeed. 2 questions / observations: 1. By specifying just the project at the command line, will it ONLY try to run the KW tests, or will it also try and execute anything in the Script Folder(s)? 2. If in TC, we have a folder hierarchy of KW tests (eg, Login tests, Logout tests, blah blah blah) - what if we only wanted to run the Login tests - the command line does not accept folder names - eg KeywordTests|01_NormalLogin as opposed to KeywordTests|LoginTests|01_NormalLogin. Would there be a way to select a subset of KW tests using your suggestion? Many thanks! Steve1.8KViews0likes0CommentsForum suggestion
Hi there, I was just reading Sergei's post about the TC10 beta, and I had a question about it. As usual, I hit "post reply", typed up my question, and submitted the post. It wasn't added. Seemingly, this thread is "read only" - and doesn't allow replies (nor does it allow ratings). Fair enough - but should the "post reply" button not be disabled for such threads? Quite disappointing / frustrating to find my reply disappear into nowhere!11 years agoPlace Community Off-TopicCommunity Off-Topic8KViews0likes1CommentStop on Error.... different levels?
Hi All, Can anyone suggest how I can achieve this... I have a number of keyword tests, each consisting of a number of script routine calls. those routine's may have Log.Errors in. Obviously, with Stop on error set, this would stop the current keyword test in it's tracks. However, going forward, we will be calling TC (or TestExecute) from the command line to run multiple KW tests. To save time in terms of starting / executing TC/TE, it seems logical to me to create a keyword test "suite" - consisting of a Keyword test that contains all the tests we wish to run - and simply point the command line at this single KW test "suite". In this scenario, I would want a script module Log.Error to fail the parent KW test, but NOT the entire KW "suite". Any thoughts?Solved5.2KViews0likes3CommentsEditing TC Project outside of TC
Folks, Can anyone explain how / where Project level variables are stored in a TC project? To add some detail - we have uDeploy in place here, and we'll soon be wanting to run our TC project in different uDeploy environments, pointing the TC code at different URLs. As such, I figure the simplest idea is to have the URL stored as a project level env in TC, and then have uDeploy change the TC project file where the URL, and other "varying" values are stored to fit needs for that run. But where do project vars live? is it an editable text file of some sort? Does anyone have a better suggestion to make it "uDeploy friendly"? Cheers SH4.1KViews0likes2CommentsRe: Currently foregrounded page
Hi Tanya, From what I've seen, Chrome, and FF default to opening the additional pages as Tabs, with IE opening in new pages - your fix above would make all three of these the same, and mean the "Visible" solution would work. My Safari installation has gone pop (even uninstall / reinstall doesnt help!) - so I can't comment on which way round Safari works - but I'm sure I can find a similar fix to make it behave the same too.... Although I'm hoping I can persuade the powers that be to drop support for Safari ;) So this could well be the way forward! Many thanks!2.2KViews0likes0CommentsRe: Currently foregrounded page
Hi Tanya, Unfortunately it seems that doesn't work in this case. If I have two browser windows, neither is maximised, and one partially overlapping the other, then both Visible and VisibleOnScreen are TRUE for both pages. If I line them both up so they are completely aligned and the same size, or of course if one is smaller than the other which is completely overlapping it - then VisibleOnScreen is FALSE for the hidden one. But by default, the new window is opened the same size, partially offset from the original window - and as such, both windows have both visible settings TRUE NOW, that said - the above is in IE. If I repeat the test in Chrome then a new TAB is opened, rather than a window - and in this case, both Visible settings are TRUE/FALSE as you would expect. Also in this case, there is only ONE Sys.Browser("chrome").BrowserWindow object - whereas of course when IE opens new windows, there is a BrowserWindow object "per page". If it helps, I can tell you that as part of my test I have a test start event that closes ALL browser windows first - so only the browser windows related to the test are open. As an aside, I've yet to see what happens in FF or Safari. I'm guessing FF will be in line with either IE or Chrome, and that's fine. Safari will probably go off and do something completely different ;-) One idea I had was Sys.Browser().FindAllChildren("ObjectType","BrowserWindow") then take the window with the highest ObjectIdentifier value, and link to the visible (and probably only) page belonging to this value - but its the "belonging" relationship I cannot work out! So in summary - multiple tabs is easily dealt with, as per your suggestion. multiple browser windows - not so easy - vislble and visibleonscreen don't help, and focused doesn't seem to work as one might expect.2.2KViews0likes0CommentsRe: Currently foregrounded page
Just to add to this - I thought the "focused" property would be what I was seeking. To get around problems of object browser/spy somehow stealing focus, I tried the following code - clicking from one IE browser to the next every few seconds.... { var PropArray = new Array("Focused", "ObjectType") var ValArray = new Array("true","BrowserWindow") while (1==1) { var browwin = Sys.Browser("iexplore").FindChild(PropArray, ValArray, 1, true) if (browwin.Exists) Log.Checkpoint(browwin.Caption) else Log.Warning("No focused browser window") aqUtils.Delay(5000,"Waiting 5s") Sys.Browser("iexplore").Refresh() } } The only think that got logged (repeatedly) was "No focused browser window". - ie, the "focused" property doesnt seem to know when a browser window is active/focused?2.2KViews0likes0Comments