Contributions
Re: Namemapping with extended find - invisible Alias?
Kresten, Have you tried to use Flat "Object Tree Model" for Smoke project mentioned here: http://support.smartbear.com/viewarticle/11302/ It might work, if you organize NameMapping based on UIDs. I would suggest try to keep "Tree Model" for Regular project. Because UI complexity can make flat view very hard to understand and maintain.1.2KViews0likes0CommentsRe: Is there any way to keep all the Objects in Xml instead of NameMapping
Ernst, Can you describe what you are trying to do? TestComplete is able to work only with original XML nameMapping, "tcnm" format. And xslt just provides a representation in different format, this is just an example to initial tread. And can be used by other tools. If you are trying to make your own Object Mapping approach using custom xml, so probably I've directed you in wrong way. Because I used that xml with other tool, non TestComplete. The easiest way to have "custom NameMapping" is using object wrappers in a kind of PageObject pattern. On the simple example of Notepad can look like following: function NotepadWrapper() { this.getEditBox = function() { return Sys.Process("notepad").Window("Notepad", "*", 1).Window("Edit", "", 1); } this.sendEditKeys = function(keys) { this.getEditBox().Keys(keys); return this; } this.setEditValue = function(value) { this.getEditBox().wText = value; return this; } this.verifyEdit = function(expectedValue) { aqObject.CompareProperty(this.getEditBox().wText, cmpEqual, expectedValue, false); return this; } } //usage function dummyTest() { var notepad = new NotepadWrapper(); notepad .setEditValue("bla-bla Test") .verifyEdit("bla-bla Test") .sendEditKeys("begin from ") .verifyEdit("begin from bla-bla Test"); } and if you want to store "Sys.Process("notepad").Window("Notepad", "*", 1).Window("Edit", "", 1);" this info in xml, you are probably free to select the format, I haven't seen good and flexible solutions for this, because all of this is wrapped by NameMapping/Alias functionality. Imho NameMapping is really good here. and you can replace this hard to read getter return to "return Alias.Notepad.Edit"; P.S. please, someone suggest me, how can I wrap code examples in more tidy view in this forum :-)1.4KViews0likes0CommentsRe: Namemapping with extended find - invisible Alias?
Kresten, Now I see what you mean. :-) It looks this is feature according to following answer: Old SQAForums thread by Allen_AQA : "In this case, the behavior is expected as getting mapped names for objects retrieved via the Extended Find feature can lower your test's performance significantly due to complex tree processing. So, the MappedName property is not available to objects that can be found using the Extended Find feature, and the behavior is unlikely to change in the future." From my own, I would NOT suggest to use Extended Find widely. Only if object is really "jumping" on hierarchy in one run, not from build to build. Being on you place I'd try to use Aliases structure for your tests and try to keep NameMapping organized. Especially imagining what Extended Find means internally and what impact it can have on performance for object recognition during run.2.3KViews0likes0CommentsRe: Is there any way to keep all the Objects in Xml instead of NameMapping
Usually I use MS Visual Studio any editions. For small NameMapping you can try here: http://markbucayan.appspot.com/xslt/index.html If you have huge name mapping try any free tool, or use some coding. Like EditX or anything google will answer "Xslt processor free" :-)1.4KViews0likes0CommentsRe: Is there any way to keep all the Objects in Xml instead of NameMapping
Hi Ashok, Why do you need this? What issue do you want to resolve? I have an xslt that transforms nameMapping.tcnm into a bit more simple xml. Here is it: http://namemapping2objects.codeplex.com/SourceControl/changeset/view/11386#2618991.4KViews0likes0CommentsRe: Run a DOS Command and wait till it finishes
If your project is related to .Net one. A quick solution could be: Add to Project by Double click on it -> Properties -> CLR Bridge: System 2.0 from GAC. This will allow to use common dotNet assemblies use following code (JScript): var process = dotNET.System_Diagnostics.Process.Start_2(path); // OR var process = dotNET.System_Diagnostics.Process.Start_3(path, args); process.WaitForExit(); //infinite wait // OR process.WaitForExit_2(msecs); You can read more about Process object here: http://msdn.microsoft.com/en-us/library/system.diagnostics.process_members%28v=vs.90%29.aspx Note: JScript doesn't support method overloading, thus you'll need to check with IntellSense suffixes (like above _2, _3 etc) meanings.914Views0likes0CommentsRe: Namemapping with extended find - invisible Alias?
Kresten, Could you please explain: "...move the mapped object to a grandparent object..." My understanding you are changing the map how object is searched. Ability to change relationships in NameMapping (not Alias tree), I used only for cases when actually UI is slightly changed, like: - added/remove panel in the middle - middle objects reorganized. That is why you can get lost of object identification. "Another thing that confuses me is that you cannot click on a mapped object and 'Show Alias'. you can only go from the Alias and 'Show Mapped object'." I think this was done due to several reasons. The biggest one is that to one NameMapping object you can have several Aliases. And this case would require to ask user witch particular Alias he would like to see. I agree that this would be useful. The first what I miss is the highlighting of mapped object: - green - has alias or aliases - blue - does not have aliases2.3KViews1like0CommentsRe: TC run several project in one time
Generally you cannot. But if you can explain what scenario you want to get, there can be workarounds. If you want to use tests from several projects at the same time - it is possible. Of cause UI interaction will stay in single thread, due to its nature: one mouse, one keyboard, one user at the same time.609Views0likes0CommentsRe: C# Extensions for Connected Application. TestComplete API roadmap.
Alex, I just posted it, I found the window in browser was still opened to confirm request, I haven't seen this functionality on my previous usages. There is no numbers in request you mentioned. The exact subject is "Improve usage of TestComplete API". I assume it didn't pass "After your submission passes the initial processing and enters the Support Queue, you will get an e-mail notification with an Issue# assigned to your submission."1.6KViews0likes0Comments