Replies
Kevin,
Are you able to record on the samples that come with Infragistics Test Automation? If so then record on the one with the tree to see how it records. If not then you have a larger issue with the configuration that will need to be resolved.
Are you able to record on those samples? Also what is the related case number for the case you opened?
Hello,
In addition to what I posted before, Data Widgets was replaced by our COM/ActiveX Grid control called UltraGrid which is part of UltraSuite. To convert from the older control to the UltraGrid requires a rewrite. As far as UltraSuite, version 3.2 is what is sold through our resellers.
Let me know if you have any questions with this matter.
Hello,
The Sheridan controls have been retired for at least eight years and are no longer supported. As far as the latest version, I believe that Data Widgets included the grid control you are referring to and the latest (or only) version still sold is 3.1. Note that we no longer sell the retired COM products directly and they would need to be purchased through one our resellers if you wanted to purchase them.
Let me know if you have any questions with this matter.
Shanmugavel,
This is a better question for HP as they are the company that provides Quick Test Professional and the .NET Add-In. In doing a search online I found an answer on StackOverflow that indicates that the SWF stands for System.Windows.Forms: http://stackoverflow.com/questions/1121579/qtp-dynamic-great-plains-automation/1362704#1362704
Hello Mike,
I am not sure what was used for the print dialog in the COM controls and it is likely an old MFC print dialog or something like that. As far as using them on Windows 7, the toolset was retired long before Windows 7 was released so you may want to see if the application will work correctly when running in compatibility mode. To do this, create a shortcut for you application and in the shortcut properties go to the compatibility tab and select an older version of Windows where your program ran.
Another alternative that you could look into is running the program on a Windows XP machine and using some remote access technology like Citrix to access it.
Let me know if you have any questions.
Nikolay,
You are correct that the existing System.ComponentModel.Design.DesigntimeLicenseContext from the Framework Class Library should be used rather than creating a new class. Also since the catch of the try catch is returning a value, the restoring of the context should be moved to a finally block as you have suggested as the context wouldn't be restored if it isn't. Alternatively the logic could be refactored so that the catch doesn't return a value and then the context would always be restored if it was restored after the try catch block. Thank you for pointing out these mistakes in my code.
Regarding the Dispose method, in the License class Dispose is an abstract method and in the UltraLicense that derives from it there isn't any implementation in the method so it will not make a difference if it is called or not.
This is the updated IsInfragisticsWindowsFormsDesignTimeAllowed with these changes:
public static bool IsInfragisticsWindowsFormsDesignTimeAllowed()
{
UltraButton button = new UltraButton();
Type ultraButtonType = typeof(Infragistics.Win.Misc.UltraButton);
LicenseContext context = new DesigntimeLicenseContext();
LicenseContext currentContext = LicenseManager.CurrentContext;
License license = null;
LicenseManager.CurrentContext = context;
try
{
LicenseManager.IsValid(ultraButtonType, button, out license);
}
catch (Exception)
{
return false;
}
finally
{
LicenseManager.CurrentContext = currentContext;
}
UltraLicense ultraLicense = license as UltraLicense;
button.Dispose();
return ultraLicense != null && ultraLicense.ProductInfo.Status == LicenseStatus.Licensed;
}
Let me know if I can be of further assistance.
Hello Nikolay,
I am going to provide a simple way to check to see if the NetAdvantage for Windows Forms controls are licensed to be used at design time on the computer. For this I have made the following assumptions:
- You are referring to Windows Forms as you said "form designer".
- The NetAdvantage assemblies are already referenced by your product so they are present.
- You are only looking for a single version on the developers machine that matches the version your product uses.
If these assumptions are correct then you can use the LicenseManager to check the license of a NetAdvantage Control after setting the CurrentContext to a LicenseContext that has a UsageMode of DesignTime. If this doesn't throw any exceptions and UltraLicense is returned that has ProductInfo.Status set to LicenseStatus.Licensed then the machine has a license to use the NetAdvantage controls at design time. After this check the CurrentContext needs to be resotred to the correct context. The following code is an example of what you might use to do this:
class LicenseChecker
{
public static bool IsInfragisticsWindowsFormsDesignTimeAllowed()
{
UltraButton button = new UltraButton();
Type ultraButtonType = typeof(Infragistics.Win.Misc.UltraButton);
LicenseContext context = new TestLicenseContext();
LicenseContext currentContext = LicenseManager.CurrentContext;
License license = null;
LicenseManager.CurrentContext = context;
try
{
LicenseManager.IsValid(ultraButtonType, button, out license);
}
catch (Exception)
{
return false;
}
LicenseManager.CurrentContext = currentContext;
UltraLicense ultraLicense = license as UltraLicense;
button.Dispose();
return ultraLicense != null && ultraLicense.ProductInfo.Status == LicenseStatus.Licensed;
}
}
public class TestLicenseContext : LicenseContext
{
public override LicenseUsageMode UsageMode
{
get
{
return LicenseUsageMode.Designtime;
}
}
}
I have also attached a simple sample that you can reference that demonstrates this. Simply compile the sample and run it on a machine that has NetAdvantage for Windows Forms installed and one that doesn't to see the difference in behavior.
If the assumptions that I have made are not valid for you, please provide more detail on what you need so that I can look into this further.
Let me know if you have any questions.