Quantcast
Channel: New board topics in SmartBear Community
Viewing all 26529 articles
Browse latest View live

RE: Version of executable or library

$
0
0
Use aqFileSystem.GetFileInfo(path).[url=http://support.smartbear.com/viewarticle/55467/]VersionInfo[/url]:
[code]
function Test()
{
  var strFileName = "C:\\Windows\\notepad.exe";
  var oVerInfo = aqFileSystem.GetFileInfo(strFileName).VersionInfo;
  var strVersion =
      oVerInfo.FileMajorVersion + "." +
      oVerInfo.FileMinorVersion + "." +
      oVerInfo.FileBuildVersion + "." +
      oVerInfo.FileRevisionVersion;
  Log.Message(strVersion);
}
[/code]

RE: Bugs and new ideas

$
0
0

Great thanks Helen! It difinately closes 1 and 2. 

Wow it's even the button to import settings from Visual Studio in one click. Very nice)

RE: Unable to open project with TC 10.40

$
0
0
The issue was fixed by the TC support. Some node were duplicated in the mds file (I think coming from a bad merge of SVN).
In case same thing happens to someone simply send the file to the support team they will make it valid again.


RE: Sys.Process("****").Exists log an error and not return a value

$
0
0
Hi Chris

Tanya is correct - you need to use the 'wait' methods with Exists.  I've attached a simple example below, which determines whether the Windows Calculator process is running.  It simply logs a message to the log file as to whether it is or not and returns a Boolean true or false accordingly...


[code=jscript]
function isCalculatorOpen()
{
  
var isOpen;

  
if (Sys.waitProcess("calc", 1000).Exists)
  
{
     
Log.Message("Process Exists.");
     
isOpen = true;
  
}
  
else
  
{
     
Log.Message("Process Does Not Exist.");
     
isOpen = false;
  
}

  
return isOpen;
}
[/code]


Hope this is helpful.

Addendum: Perhaps an explanation would also be helpful...

When you try to access the 'Exists' property on a process or a control that does actually exist, the system is able to access that property, which would obviously be true.  However, as in your case, when the process itself doesn't exist, it's properties don't actually exist either, so trying to reference the 'Exists' property will fail.

The 'Wait*' methods catch this error and what actually happens is that when a process or control doesn't exist, the 'Wait*' method generates a dummy or stub object with only one property, the 'Exists' property, which will be set to false, thus enabling your code to carry on without failing.

Regards
Stephen.

Display SVN version in log?

$
0
0
I would like to display in log message of "test complete" the svn version of my project.
Is ti possible?

RE: Test complete application Crash.

$
0
0
Hi Vasanth,
 
Does the issue persist with TestComplete 10.40? Please update to this product version if you haven't done this yet.
 

RE: FindAllChildren finds a particular object, but unable to navigate to them

$
0
0
Hi Sankar,
 
If you add the following script to your code, will the click be performed:
 
[code=JScript]//JScript 
TBoxBudget  = (new VBArray(TBoxBudget )).toArray();
 
if (TBoxBudget.length > 0)
 {
    for (k = 0; k < TBoxBudget.length; k++)
      TBoxBudget[k].Click()
 }[/code]
 

RE: not able to access the java methods when trying to automate Java RCP app

$
0
0
Hi Sam,
 
You can try using the Object Mapping feature to make TestComplete treat your control as a supported one and recognize more properties.
Please read the "Object Mapping" help topic for more information.
 

RE: Cannot load data for ActiveX Objects.

$
0
0
Hi Aleksandr,
 
[quote]please post a link to "Features Added to TestComplete 10.40" article.[/quote]
 
You can find the list of new features in the online documentation [url=http://smartbear.com/viewarticle/64368/]here[/url].
 
Everybody, if you used to work with the ActiveX feature in previous TestComplete versions, please contact [url=http://support.smartbear.com/product-list/]our Support team[/url] - they can provide you with this plug-in for v. 10.40.
 

RE: missing CAB file during installation of TE 10.40.2015

$
0
0
Hi Morten,
 
As far as I can see, you've contacted the Support team, and the issue is resolved now.
 
I'll post the answer from our team so that everybody who faces this issue could resolve it:
[i]
Our R&D team has just recently found out that this TestComplete v10.40 installation error appears because of corrupted TFS installation on the machine. 
 
The solution is to: 
 
1. Install Team Foundation Server 2013 Express: 
 
[url]http://www.visualstudio.com/downloads/download-visual-studio-vs#d-team-foundation-server-express[/url]
 
Then: 
2. Install TestComplete v10.40 
 
OR 
 
Try re-installing TestComplete v10.40 *without* the Visual Studio Integration features selected. 
[/i]
 
Please let me know if you have any questions.

Mobile App testing

$
0
0
Hello TestComplete experts.
 
Before buy a testcomplete subscription I have few questions in my mind and want to clear, please help me.

1- Does the testcomplete works for iOS app that developed in titanium appcelerator?
2- Instrumentation is required for these iOS app?
3- I have two developers, One for Android and another for iOS. I am responisble to perform QA for mobiles apps. How many license we require?
4- Any license is require for apps instrumentation?
5- Is it possible to record a mobile app test along with web test.

thanks

Check whether a SwingObject exists in a screen

$
0
0
I have in my application an object which I can access through the following VBscript command, meaning that the tools clicks on it:

  Call Aliases.ANVA45.scherm_Formuliersoorten.TabSoort.SwingObject("PicobolTabNative", "Anva", 0).SwingObject("TabbedPane.scrollableViewport").SwingObject("BasicTabbedPaneUI$ScrollableTabPanel", "", 0).Click(24, 9)

Now I want to make a VBscript that can check whether the Object exists, and also continue without an error when it does not.

Can someone give me an example.

RE: Test Complete doesn't support webservice that uses authentication with security token?

$
0
0
Many Thanks Alex, 

That artical does not explain any thing about pre-emptive authentication.

As pre-emptive authentication is a Basic type authentication and supported as per artical. In SOAPUI, we need to select a radio button to make it work but when trying it in Test Complete, it says not authenticated.

It seems although TestComplete support Basic authentication but it is using global preference and no option to make it pre-emptive authentication.


RE: Page.Find method returns the last object.

$
0
0
Thanks, but this is a dynamically created web page built from a query.

For what we are doing (Lights on), we do not need a specific one. Just need to click one. (perferably the first one) As it is dynamic I do not know what the contents will be or they may change. So find works in this situation but it selects the last one. The test would be more efficiant time wise to stop at the first one found and click it.

I dont know why "Page.Find" wouldnt be designed this way. If I need to go through them all, I would use "Page.FindAll".

Thanks again

RE: Page.Find method returns the last object.

$
0
0
Hi Jason -

Even though the page is being created on the fly, you may still be able to add a property to narrow down the search.

Is there an index or something else that uniquely identifies each object?  You can then just search for index = 0 to always get the first one. 

RE: window was destroyed during method execution - after updating from 10.3 to 10.4

$
0
0
Hi Alexei,

Thanks for your comments.  Very good explanation of needing to wait for web service objects and make sure they exist before using them.  It seems to me as if the case you describe is actually the opposite of what I encountered however.   With the new version of testcomplete,  a less specific find function was finding two matching objects.   In other words,  the problem was not that the object did not yet exist when I was looking for it, but that too many objects existed.

Regards, Curt

missing Flex Properties (Extented)

$
0
0

We have a test project: by using TestComplete v10.3 and TestExecute v10.3, none problem.
This same test project: by using TestComplete v10.4 (2015) and TestExecute v10.4 (2018), problem observed :
 … the object … does not have a property named "ItemCount".
 … the object … does not have a property named "Item".

Some “Extended propertiesFlex are missing in the v10.4 version (tested on the same Flex object).

  • Focus
  • IsMultiSelect
  • Item
  • ItemCount
  • ListSeparator
  • Selected

See screen shot, please…

After some investigations :

In my "mm.cfg" file (C:\Users\<MY_USER>\mm.cfg),

  • if I have: “PreloadSwf=C:\Program Files (x86)\SmartBear\TestComplete 10\Open Apps\Flex\FlashInjector.swf”,
these “properties Extented” are missing by using TestComplete v10.4.
  • if I have: “PreloadSwf=C:\Program Files (x86)\SmartBear\TestExecute 10\Open Apps\Flex\FlashInjector.swf”,
these “properties Extented” are missing by using TestComplete v10.4.
  • if I have: “PreloadSwf=C:\from_install\TestComplete 10.3\FlashInjector.swf”,
these “properties Extented” are available by using TestComplete v10.4.
  • if I have: “PreloadSwf=C:\from_install\TestExecute 10.3\FlashInjector.swf”,
these “properties Extented” are available by using TestComplete v10.4.

This problem is present with TestComplete and TestExecute 10.4.

RE: Does Test Complete Mobile support hybrid apps?

$
0
0
Hello,
  TestComplete 10.40 now supports testing hybrid Anroid applications created in PhoneGap!

Here's a link to the 10.40 release notes: http://support.smartbear.com/viewarticle/64368


Thanks,
Rick

SmartBear Customer Care Team

Checking window status in Test Complete

$
0
0
I have two problems I've been tasked with solving in Test Complete:

1. Find a way to figure out whether a window whose content takes highly variable amounts of time to load has finished loading yet (so that the next test action is executed on the correct object within the window, which can only be ensured by having everything loaded already).

2. Figure out whether that same very finicky window has closed or not, so that the next test action (on another window which will regain focus as soon as the window in question finally closes) can be executed on the correct object without interference or timeout.

While I was able to figure out the second problem using a strategically placed While Loop with a delay, I'm thinking there must be a way to take care of both problems effectively and much more neatly by sending some sort of message to check the status of the window (e.g. processing, idle, ready) and act based on that. I've been fiddling around with various methods, but haven't found the right one yet. Any thoughts?

I'm using TestComplete 10, currently using keyword tests but open to JScript if that's more expedient.

RE: Android application not being recognized as an instrumented application

$
0
0
Hi Alexei

I haven't used either Android Studio or Eclipse myself, but I would assume that Eclipse would allow users to create a debuggable apk file. Maybe someone reading this could chip in?

I had a look at the Falafel website and found the Falafel Bridge for Testcomplete at this link:

https://components.xamarin.com/view/falafel-tc-bridge

I won’t be able to try it out until we switch over to Xamarin. Are there any known issues with using the Falafel Bridge that we should be aware of?

Thanks
Viewing all 26529 articles
Browse latest View live