ContributionsMost RecentMost LikesSolutionsRe: How to rename Project suite log names from script ? Hi all, Is it still impossible to rename log files entriesa via scripting? Re: ClickCell method on stingray grid doesn't works on Windows 10 anupamchampati wrote: I am using ClickGrid (row, colomn) and it is working in Windows10. Check the grid properties and do send some information. Hello, ClickGrid is not available on Stingray grids unfortunately Re: ClickCell method on stingray grid doesn't works on Windows 10 Hello, thank you for you answer! We actually did a double check of the requirements and the specific settings for TC to run under Windows 10 but still the problem exists. Moreover, we did some more tests: 1. The method Click (xpt, ypt), which requires the points on the Stingray grid, works fine, and the OnLButtonDown event arrives fine (our application is written in C++ and we can debug it to test whether the event arrives or not) 2. Some Stingray methods are working fine (such as GetRowHeight, GetColWidth and so on) 3. the method wValue (cellX, cellY), that returns the value contained in that cell, works fine too. The ClickCell (cellX, cellY) does not work at all: the even OnLButtonDown is never fired on the grid. I am supposing that both ClickCell and ClickCellR are TestComplete methods that wrap grid specific methods to reach the provided cell coordinates. May it be possible that it's a bug of the implementation of the ClickCell (and ClickCellR) on Windows 10? If someone from smartbear can help us, we're stuck with our tests... Thank you in advance! ClickCell method on stingray grid doesn't works on Windows 10 Hi, I'm testing some Stingray grids. The entire suite of tests has been created on Windows 7 OS using a big amount of call to the method Grid.ClickCell(Row, Column) on the grid object. Unfortunately moving on Windows 10 OS the same method doesn't work anymore. The error returned is very generic (An Error Occurred) , I attach a snapshot of the error that occurs. The only method that seem to keep working is Grid.Click(X,Y) Have you got some suggestion on how to solve this issue? Thanks a lot, Lorenzo Re: TestComplete: enable/disable Test items list via COM Object Hi Alex, well my goal is, with the first TextExecute call, to prepare the test items for the second call (i.e. enable/disable a subset according to a parameter I may providevia external file that the vbs will be able to read data from). I'll give you an example: suppose I have a test suite (mySuite.pjs) with a project (call it myTestProject.mds) having two test groups: NOREGRESSION_TESTS, with 12 test items and PERFORMANCES_TESTS, with 8 test items. Then I write a vbs (name it testsetup.vbs with a routine called "prepareTests") placed inside the myTest.mds project, that is able to enable all the NOREGRESSION_TESTS or PERFORMANCES_TESTS according to a parameter. My first call to TestExecute could be (supposing I wrote onto a parameter.txt file the word NOREGRESSION_TESTS) : TestExecute.exe "C:\Work\SmartBear\TestExecute\Projects\mySuite.pjs" /r /exit /p:myTestProject /u:testsetup /rt:prepareTests My second call would be: "C:\Work\SmartBear\TestExecute\Projects\mySuite.pjs" /r /exit /p:myTestProject The prepareTest sub would read from the parameter.txt file the group of tests that must be enabled and do that accordingly. Exiting I expect that those setting would be saved (as in Testcomplete) so the second call would get those tests enabled and execute them. I hope I was clear on this! It's a bit tricky and in order to do this you need external files describing the tree of test items (for me just simply the two groups but sometimes I guess I would need to be more deeply specific with that enabled list). What I wanted to avoid was just that step, that's why I wante to read all the test items via COM (of course using a hidden TestComplete instance, which performs all the COM requests) with a C# form application, let the user via a UI choose what to set/unset, save the project and close all, leaving to the TestExecute command line (just the second one) the test execution. Re: TestComplete: enable/disable Test items list via COM Object Hello Alex, well my plan is to have a msdos batch file containing two TestExecute command line statements: the first one command line where I specifically run that vbs script routine to set-up all the testitems I want to run whereas the second TestExecute command specifies the project containing the test items. I guess it should be possible, when exiting testExecute, that the modifications are saved into the xml project file so the second run will find that ready to be used. Re: TestComplete: enable/disable Test items list via COM Object Hello Alex, first of all thank you for your reply. I will try then to parse the xml file using that code you suggested. I had another idea I want to share with you: 1. suppose I create a vbs script inside TC that can get the test items collection, enable/disable them according to a provided parameter and that's it. 2. I then could run TextExecute with that routine to setup the test items accordingly and then 3. run Testexecute with the entire project, expecting to run just the test items selected by the point 2. How do you see this? If that works, it could be easier to maintain because it would be inside TestComplite IDE as the tests themselves. Thanks in advance, Silvio TestComplete: enable/disable Test items list via COM Object Hi all, I recently started building an external C# application to drive TestComplete (it would be better to do this with TestExecute though) to run some specific test items. I need to get (via COM) the list of test items of a project, enable/disable part of them, and then run them. I open the suite (according to the code in the help file) but actually don't know how to get the test items list starting from the TestComplete.ItcIntegration IntegrationObject or from TestComplete.ItcProjectIntegration project = IntegrationObject.get_Project("DBW_test_environment"); Can anybody help me? Is there a sort of documentation of the COM model of TestComplete/TestExecute? Many thanks in advance Silvio how to check whether a vbscript function exists from another unit HI all, I know (and have been using a lot) that the method GetRef is useful within a script unit to see whether a function exists or not: Dim proc: Set proc = GetRef(procName) FunctionExists = (Not proc Is Nothing) If the procName is inside that unit, this way works fine. How can I use this (or something else) if I want to know whether a function/sub inside another unit exists or not? Thank you all in advance! Silvio Re: Stingray grid method GetRowCount, called by vbscript, sometimes is not found Hello Martin, thanks for your help. I've actually read that page and noticed that there is no documented section about the method/property GetRowCount, but still that method appears among the methods list. The thing is that sometimes it does not, together with some more others (which are listed in that page, i.e. wColumnCount, wRowCount). What suprises me is that this happens randomically :/ as it has not been able (in some circumstances I don't know about) to "load" all the debug info or to build the advanced table of prop/meth