Contributions
Sync scenarios with Gitlab for manual execution
Hi, Our feature files are written directly inside the repository of a Gitlab project. They are manually executed. I would like to know if this is possible to synchronize the scenarios directly from the Gitlab repository using the application hook. It seems to have some of this feature with a project of type "BDD with Cucumber", but not with the type "Test management". For this last one, I can only import the file (one by one) from Gitlab or from a local folder. Meaning that scenarios in CucumberStudio will get unsynchronized if we forget to import them at every modification. Thanks!3 years agoPlace CucumberStudioCucumberStudio1.1KViews0likes0CommentsRe: Namemapping for Multilingual testing
Hi Alex, Most of my application are in C++ and C#. Our team has created a framework in C#, which is my first problem because ID and index are dynamic, ClassName are the same, etc. I am doing regression tests with TestComplete, so the team won't open the code of these applications (more than 40 applications to test). I don't really have choice actually. As I said there is always a way, maybe my tests won't supportmultilingual so I can use the text. Thanks and regards, Aurélien896Views1like0CommentsRe: Namemapping for Multilingual testing
Thanks for the reply Alex. "If you use language-specific text properties for object recognition (like wText or WndCaption), then you have to specify text in the appropriate language. To minimize possible editing, you can try using text properties that are not language-specific (like WndClass, it's always in English), or use non-text properties (like ChildCount, Height, ScreenLeft and others). Numbers are the same in all the languages :-)." My Problem is that objects I want to map have the same static properties (Same WndClass, ChildCount etc...). They are buttons on a panel and when you click on it, others buttons appear in the same panel at the same place but with differentbehaviors. There is always a way to map these objects but since the caption was the only unique propertyassociatedto the object, I was hopping to use the possibility to change the NameMapping properties depending the language. It will be painful to specify text for each language (12 languages and more to come). I will find another way : ) Thanks and regards, Aurélien3.4KViews0likes0CommentsRe: Namemapping for Multilingual testing
Ok. I figured out that I have to edit the wText value as a constant. Is there not another way? Because I have 12 languages supported and I don't think I will do this for all objects which don't have unique properties in my applications. My original goal was to automatically map every objects that have a text (wText, caption, etc.) in their properties by a script. But if I have to go back behind to change the value as constant I don't think it worth it. Is somebody has a suggestion? Thanks and regards, Aurélien.3.4KViews0likes0CommentsRe: Namemapping for Multilingual testing
Hi, I tried to test using Namemapping configuration for Multilingual applications but the result is not what I expected. I have a create a test.txt with the word "French". I have mapped it and use the wText "French" as unique property of "Edit" object. The three is like this "NameMapping.Sys.NOTEPAD.wndNotepad.Edit". I have copied as new this namemapping and I have change the property of "Edit" object for "English" (I have replaced the word in the test.txt to do so). After I put back the word "French" in the test.txt. Then I run this code (TestLangue thenTestLangue2) in the ProjectSuite: Sub TestLangue Call OpenFile("C:\Users\aurnoi1\Desktop\Test.txt") NameMapping.CurrentConfigurationName = "French" If NameMapping.Sys.NOTEPAD.wndNotepad.Edit.Exists Then Call Log.Message("Success") Else Call Log.Warning("Fail") End If NameMapping.Sys.NOTEPAD.wndNotepad.Close End Sub Sub TestLangue2 Call OpenFile("C:\Users\aurnoi1\Desktop\Test.txt") NameMapping.CurrentConfigurationName = "English" If NameMapping.Sys.NOTEPAD.wndNotepad.Edit.Exists Then Call Log.Message("Success") Else Call Log.Warning("Fail") End If End Sub Sub OpenFile(path) Dim WshShell Set WshShell = Sys.OleObject("WScript.Shell") WshShell.Run(path) End Sub The code open the file and validate if the object "Edit" exists. At first it correctly finds it (because the NameMapping is in French), but it finds it even when the NameMapping is in English. And after it proposes me to change English NameMapping because the property wText has changed. So I don't understand how I am suppose to this? Shouldn't it fail when searching for "Edit" object since the property is not the one expected? My goal is the same thatKayChamberlain. I have multiple applications supportingmultilingual and sometimes the only unique property is a text. So I would like to try to avoid the problem of multiple object with same identifiers by this way. Please find in attached file the ProjectSuite. Best regards, Aurélien3.4KViews0likes0CommentsRe: Silent installation of TestExecute / TestComplete
Hi, I have followed the instructions to create theSetup.iss file. But I don't find it in C:\Windows. 1) I have extracted the files from "TestComplete" installation package to a folder on my desktop. 2) I have run the<path_to_install_files>\Setup.exe /r in command prompt 3) It started the installation of TestComplete (at first a window with the command list appears). 4) I have completed the installation but didn't start TestComplete since I don't want to use my key for this. InC:\Windows I don't have "Setup.iss" file. Did I miss something? Thanks and regards, Aurélien1.7KViews0likes0CommentsRe: Call function from C++.dll
For the record: From Jared: "The problem is in the way exported functions in your DLL are named. The name of the function you need to call is actually _pft_IsOptionActivated@24 in the list of exported functions. Most likely, this occurs because of the way this DLL is compiled - it must match the stdcall calling convention (as, for example, Windows API functions do). I guess, this is something your developers should look into. Anyway, currently, to define your function in the DLL, you need to use the following code: Call Def_DLL.DefineProc("_pft_IsOptionActivated@24", vt_int, vt_int, vt_int, vt_int, vt_int, vt_byref OR vt_bool, vt_void) Once you do this, the wrapper object created for your DLL in TC will have a method named zpft_IsOptionActivated_24. This is because some characters (@ in this case) are replaced with underscores to create a valid identifier. The underscore the the beginning of the name is replaced with a 'z' to make the identifier VBScript-compatible (VBScript doesn't allow starting identifiers with underscores). To call your function, use the following code: Call lib.zpft_IsOptionActivated_24(0, 0, 0, 15, 1, activated)" My Code that works now: Options Explicit Sub TestCallDll Dim Def_Environment, Def_DLL, activated, lib Set Def_Environment = DLL.DefineEnvironment(True) Set Def_DLL = Def_Environment.DefineDLL("MetrinoPlatformWin32") Call Def_DLL.DefineProc("_pft_IsOptionActivated@24", vt_int, vt_int, vt_int, vt_int, vt_int, vt_byref OR vt_bool, vt_void) Set lib = Def_Environment.Load("C:\Program Files\Common Files\Gerico\Bin\MetrinoPlatformWin32.dll") Call lib.zpft_IsOptionActivated_24(0, 0, 0, 15, 1, activated) End Sub Thanks to Jared. Aurélien1.4KViews0likes0Comments- 1.4KViews0likes0Comments