ContributionsMost RecentMost LikesSolutionsRe: Jscript exception Line numberok, thanks for increasing the rating. We have quite a lot manual scripts and script extensions, so having this feature will be really usefull for us. Will Look forward in the next version Regards, Muthu Re: Jscript exception Line numberClicking on exception from test log takes to you to the Log.Error line, but not to log.Message line.Jscript exception Line numberWhen an exception caught is it possible to find the line number which caused the exception?. ex: try { log.Message("Test1"); log.Message("Test2"); log.Message("Test3"); } catch (e) { // Posts an exception message to the test log Log.Error(e.description); } Here if execption occurs on Test2, i get an exception description, but i would like to know the line number as well. Is this possible?. Thanks, MuthuRe: Syncfusion GridTableControl supportHi Margaret, Excellent, This solution works fine with minor tweaks. This is exactly what I was looking for, it is very close how the user would be doing. Also this reduces the co-ordinate issues when the script is executed in different machines/resolutions(unless the developer changes the position of Filter cell) changes: On Step 4. Call the Click action and use the mouse cursor's coordinates to simulate a click. For example: gridTableControl.Click(Sys.Desktop.MouseX, Sys.Desktop.MouseY+25)--> this didn't work, it clicks on different position. using below example seems to click on correct position. groupGrid.HoverMouseColumnHeader("Well name"); var posX = Sys.Desktop.MouseX; var posY = Sys.Desktop.MouseY; posY = posY + 25; Sys.Desktop.MouseDown(1,posX,posY); Sys.Desktop.MouseUp(1,posX,posY); Once again thank you very much for your help. Regards, Muthu Re: Syncfusion GridTableControl support Thanks for the reply. I tried recording the actions in TestComplete and I got the below script. When I click on Filter cell it generates "gridTableControl.Click(82, 56) ", as you said in previous posts it recorded using the co-ordinates. I am bit sceptical while using co-ordinates in my script. The Dialog which I use is not always constant, the screen size changes if the data is grouped and i guess this might affect the script. Also, We run our scripts in different platform, based on my experience the screen size tend to differ on machines and script fails to click on required object that we are looking for, so we avoid using Co-ordinates in our script. var petrel; var uiTabs; var gridTableControl; petrel = Sys.Process("Petrel"); uiTabs = petrel.CompletionsSpreadsheets_Design.WinFormsObject("tabs_"); gridTableControl = uiTabs.WinFormsObject("UiTabPage", "Completions").CompletionsSpreadsheet_Design.WinFormsObject("Panel", "", 2).splitContainer1.WinFormsObject("SplitterPanel", "", 1).grid_common_.WinFormsObject("gridTablePanel").tableControl1; gridTableControl.HScroll.Pos = 18; gridTableControl.VScroll.Pos = 65; uiTabs.ClickTab("Completions"); gridTableControl.Click(82, 56); petrel.WinFormsObject("PopupHost", "").WinFormsObject("GridDropDownContainer", "").WinFormsObject("GridComboBoxListBoxPart", "").ClickItem("G1B"); Thanks, Muthu Re: Syncfusion GridTableControl supportOk, I shall use GridGroupingControl object to work with the table. All additional TestComplete methods(ClickCell,ClickColumnHeader,ClickRowIndicator) are really useful. Regarding the filter row, I don't think so I can use Click method as I don't see the Filters cells as separate object. It seems to be part of the table. Spying WinFormsObject("grid_common_").Table.TableModel.Item(2, 1).CellType give the cell type as FilterBarCell, not sure why this row is not accessible on CellClick method. CellClick(0,0) actually represents the first cell next to filter row, but not the filter cell.(ref attached clickCell attachment). I am able to add the filter to table by directly calling the .Net Assembly method(Thanks to TestComplete for providing this feature), i.e WinFormsObject("grid_common_").TableDescriptor.RecordFilters.Add(Sys.Process("Petrel").AppDomain("petrel.exe").dotNET.Syncfusion_Grouping.RecordFilterDescriptor.zctor_6("WellName",Sys.Process("Petrel").AppDomain("petrel.exe").dotNET.Syncfusion_Grouping.FilterCondition.zctor_2(Sys.Process("Petrel").AppDomain("petrel.exe").dotNET.Syncfusion_Grouping.FilterCompareOperator.Equals_2,"INJ1"))). With this I could simulate the filter actions, but it would be good if we could simulate how the users would be doing, i,e clicking Filter cell and selecting the value from drop down. Thanks, Muthu Re: Syncfusion GridTableControl supportThanks for your reply. The Plug-in is installed and I have the correct object name mapping in my projects. (ref attached screenshot), but still i am not able to see the methods (clickCell methods ref:http://smartbear.com/support/viewarticle/11554/) for Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl I made little progress by using Syncfusion.Windows.Forms.Grid.Grouping.GridGroupingControl The table has a parent object with ClrClassName = "Syncfusion.Windows.Forms.Grid.Grouping.GridGroupingControl" on this object and I am able to the use ClickCell Method on the table that I am looking for. But ClickCell methods works only on the table data and not for Filter row, . Is there any other mehtods that could be used for filtering the values?.(ref attached table screenshot which has filter row). when I use WinFormsObject("grid_common_").ClickCell(0,"Category");, it clicks on first row cell of Category column and not filter cell. Syncfusion version is : 8.3.0.21 Thanks, Muthu Syncfusion GridTableControl supportHi, In our application we have a syncfusion table with clrClassName Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl and i am having trouble in selecting rows,clicking a particular cell etc. Basically i am not able to see methods like ClickCell, ClickRowIndicator Any idea why I am not able to use these methods?.. i believe TestComplete supports Syncfusion controls. I am using TestComplete 8.5 Thanks, Muthu Re: Integration with TeamCity from JetBrainshere is another way to post results back to Teamcity from Test Complete, this solution updates test results in the default Test Tab similar to unit test. Logging TeamCity readable results from TestComplete In TestComplete, while creating script for a test we output whether test results (passed/failed) to log. Along with this, we could output the result to a text file which could be recognized by TeamCity. Here is an example of running a test from TestComplete and logging results that could be read by TeamCity. function mainTest(){ UpdateTeamCityResult("##teamcity[testStarted name='LoginTest']"); var stepResult = LoginTest(); //returns passed if test is successful if (stepResult == "Passed"){ UpdateTeamCityResult("##teamcity[testFinished name='LoginTest']"); } else{ UpdateTeamCityResult("##teamcity[testFailed name='LoginTest' message='test failed' details='Login test failed"+ stepResult+"']"); UpdateTeamCityResult("##teamcity[testFinished name='LoginTest']"); } } function UpdateTeamCityResult(data){ var fso = new ActiveXObject("Scripting.FileSystemObject"); var ForWriting=8; var TestSetResultFile = "..\\Reports\\DetailedTestResults\\TeamCityResults.txt"; TestSetResultFile = fso.OpenTextFile(TestSetResultFile,ForWriting,true); TestSetResultFile.WriteLine(data); TestSetResultFile.Close(); return true; } Printing Teamcity Results from msbuild In msbuild script, after running a test, open the TeamCityResults.txt file and print it to build log, which is then read by TeamCity automatically. Below is an example where we call the targets for set of tests and after running test it prints the TeamCity results. <Target Name="RunTest" Outputs="%(TestFiles.Identity)" > <Message Text = "%(TestFiles.Identity)"/> <Exec ContinueOnError="true" Command="$(ProgramFiles) (x86)\Automated QA\TestExecute 8\Bin\TestExecute.exe" $(MSBuildProjectDirectory)\..\..\Tests\TestRunner\TestRunner.pjs /run /project:TestRunner /SilentMode /ns /exit %(TestFiles.Identity)" /> <PropertyGroup> <TeamCityResultFile>"$(MSBuildProjectDirectory)\..\..\Reports\DetailedTestResults\TeamCityResults.txt"</TeamCityResultFile> </PropertyGroup> <Exec ContinueOnError="true" Command="type $(TeamCityResultFile)"/> this line prints the test status to build log and TeamCity picks this up automatically and updates tests tab </Target> Thanks, Muthu Re: Integration with TeamCity from JetBrainsWell, these are custom files that we create manually while running the test. We have a framework that creates these files. Below is an example of a simple test that ouputs test summary file with pass count and fail count; Assume, you have a function called Login(username,password) and you want to call this five time with different values and report results. First i would create a data file called LoginTest.txt which contains below test data. Login("user1","pwd1") Login("user2","pwd1") Login("user3","pwd1") Login("user4","pwd1") Login("user5","pwd1") In testcomplete I would create test function called Login(username,password) and a main function to call this. function Login(username,password){ ...<your test here> if ("passed"){ return true } return false } function main(){ var TestsFileName ="LoginTest.txt"; #provide full path var FailedTests=0; var PassedTests=0; var ForReading = 1; var ForWriting = 8; var fso = new ActiveXObject("Scripting.FileSystemObject"); if (fso.FileExists(TestsFileName) == true) { var TestNameFromFile = TestsFileName.split("\\"); TestNameFromFile = TestNameFromFile[TestNameFromFile.length - 1]; var TestName=TestNameFromFile ; TestsFileName = fso.OpenTextFile(TestsFileName, ForReading); var TestFunction,result,TestCount ; TestCount =0; while (!TestsFileName.AtEndOfStream) { TestFunction = TestsFileName.ReadLine(); result = eval(TestFunction); if ((result == "Failed") || (result == false) ) { FailedTests++; result = "Failed"; } else{ PassedTests++; result = "Passed"; } TestCount++; } var TestSetResultFile = "TestSummaryResults.txt"; TestSetResultFile = fso.OpenTextFile(TestSetResultFile,ForWriting,true); TestSetResultFile.WriteLine(TestName+","+PassedTests+","+FailedTests+","+TestCount); TestSetResultFile.Close(); } } here running the main function would create summary result file with test name, passed count, fail count etc of the test.. similarly you could create html and other files as well. Thanks, Muthu