ContributionsMost RecentMost LikesSolutionsRe: How to eshtablish a connection with MongoDB and fetch a query result through TestComplete Thanks all for your suggestions/inputs. Even I preferred to have a seperate ODBC driver to eshtablish a connection. I expected TestComplete would support direct connection eshtablishment with MongoDB, but unfortunately it doesn't. Also ADO is not supported for MongoDB. Thanks, Karthik K R Re: How to eshtablish a connection with MongoDB and fetch a query result through TestComplete Hi All, Does anybody has inputs/suggestions on how to eshtablish connection with MongoDB? Thanks in advance. Thanks, Karthik K R How to eshtablish a connection with MongoDB and fetch a query result through TestComplete Hi All, I have a scenario where I have to connect to the MongoDB database and verify the records. Has anyone tried eshtablished a connection with MongoDB and fetched the query result? Looking forward for possible suggestions Thanks, Karthik K R SolvedRe: How to capture the powershell result on calling the external application(.exe with arguments) Hi Robert, Thanks for the suggestion. I have got the problem resolved. I was using the StdOut.ReadAll() to get the console output. Thanks, Karthik K R How to capture the powershell result on calling the external application(.exe with arguments) Hi All, I am trying to run powershell command through TestComplete, command to call the external application(.exe) with argument. And the command returns the message to the powershell console. Unable to read the message displayed in the powershell console through TestComplete. Below is the format of the command am using to exec through TestComplete: var PowerShellObj = Sys.OleObject("WScript.Shell"); var Command = "C:\cmd_tool.exe --list-data"; var oExec = PowerShellObj.Exec("powershell -command "+Command ); Note: Manually when I run the same command in powershell console, I could see the message displayed on the console. Thanks in advance. Thanks, Karthik K R SolvedRe: Unable to load C++ DLL Hi Alex, Thanks for your reply. I believe we can get the instance of the class through calling constructor like how dotNET object allows us to call the class constructors (zctor, zctor1..). But I am not sure how to achieve this through DLL object. Thanks, Karthik K R Re: Unable to load C++ DLL Hi Alex, Thanks for the suggestions. Actually I have gone through those limitations. My DLL were referring two more DLL's. So I tried to call those DLL's first using DLL.Load() before calling my actual DLL. This way I was able to resolved the issue on loading the DLL. After this, my next question arise out of the situation is: Can we call the C++ routines which resides inside the class as ClassName.RoutineName(arguments) Thanks in advance. Thanks, Karthik K R Unable to load C++ DLL Hi All, I have been trying to access routines from C++ DLL through TestComplete. But am getting the error as "Unable to load the dll library". Using the below code to load the dll in TestComplete function CallDLL() { var Def_DLL = DLL.DefineDLL("EXAMPLE"); var Lib = DLL.Load("C:\\EXAMPLE.dll"); } Could anyone suggest how to get this resolved. Thanks in advance. Thanks, Karthik K R SolvedRe: Requesting a feature to run only the failed test items in the project suite Hi, Thanks for the reply. Actually we are using Jenkins to run TestComplete tests. In the end of execution, we consume the junitResult file generated by the TestComplete Test plugin and parse the results and publish that into the dashboard we maintain internally. As you know, when we call the TestComplete Tests from Jenkins, it executes the test items associated either with the project suite or project. [Based on the selection Entire Suite or Project in TestComplete Test plugin in Jenkins] Assume my Test Item in one of the project is organized as below Regression |___ UserStory1 |___ TestCase1 TestCase2 Assume TestCase2 got failed on first run. In junitResult file generated, the entry will be as below: <case> <duration>68.552</duration> <className>Regression</className> <testName>Regression/UserStory1/TestCase1</testName> <skipped>false</skipped> <errorStackTrace/> <errorDetails>Error message</errorDetails> <failedSince>2</failedSince> </case> Our dashboard service parse the information based on testName tag and displays the execution result in the dashboard. We are highly dependent on junitResult file and the testName tag. I know we can rerun the failed test item, using Script Test option in TestComplete Test plugin, where we need to provide the specifiec project, unit and routine name. But I was wondering post the execution, will the junitResult testName tag contains the same value as it was not part of test item in this case. If so, we cant use the dashboard parser to replace the existing failed test with the new result. So I was requesting for a feature, where TestComplete maintains some sort of xml files of all failed test items Thanks, Karthik K R Requesting a feature to run only the failed test items in the project suite Hi All, I would like to have a feature in SmartBear TestComplete, where we can run only the failed test items in the project suite. Explaining in detail: Assume I have a project suite with 3 projects with that suite, and each project has around 100 test items to be executed. So in total 300 test items are to be executed, when execution triggered for project suite. After the first round of execution, assume in each projects 10 test items failed randomly. Currently, what we have to do is, we need to select those failed test items manually and trigger execution again on the whole project suite. [This we have to do, when tests are failed due to some environment issues and so] It would be good, if we have an option of running only the failed test items from the last run. Thanks, Karthik K R