Hi,
In Ranorex 2.0 (version: 2.0.0.4977).
We have a form with 4 different tabs (Janus.Windows.UI.Tab.UITab) . I'm using the recorder to generate the code and it creates a Ranorex.TabPageList in the GlobalReprository after the replay.
If I'm using the recorder to play back the test it works fine. The Build function does not generate any error but when I run the compiled program it can't seem to find the tabs on the screen and the test fails.
Any ideas?
Thanks,
Conatainer with Tab
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Did you call before executing any Ranorex code? (If you download the new Ranorex 2.0 RC1, this call won't be needed any more.)
If you did, please post the exception text and the code that throws the exception!
Regards,
Alex
Ranorex Support Team
Code: Select all
PluginManager.Instance.LoadDefaultPlugins();
If you did, please post the exception text and the code that throws the exception!
Regards,
Alex
Ranorex Support Team
Yes the call was there.
There's no exception, the execution just stops at the CustomerTab. Here's the code:
Regards,
Berny
There's no exception, the execution just stops at the CustomerTab. Here's the code:
Code: Select all
public class Recording4
{
public static void Start()
{
Mouse.DefaultMoveTime = 300;
Keyboard.DefaultKeyPressTime = 100;
GlobalRepository.DesktopExplorer.ListItemShortcut_to_bxsystemsUti.Click("42;16", 2);
GlobalRepository.FormBXSYSTEMS__Revente_délec.ElementTopRibbon.Click("88;42");
GlobalRepository.FormBXSYSTEMS__Revente_délec.ElementTopRibbon.Click("216;40");
GlobalRepository.FormBXSYSTEMS__Revente_délec.ElementTopRibbon.Click("78;39");
GlobalRepository.FormBXSYSTEMS__Revente_délec.ElementTopRibbon.Click("57;86");
Keyboard.Press("{NumPad1}{Return}");
GlobalRepository.FormBXSYSTEMS__Revente_délec.ContainerMainPanel.ContainerGridEXCustomers.Click("37;28", 2);
GlobalRepository.FormBXSYSTEMS__Revente_délec.ContainerMainPanel.CustomerTab.Click("36;11");
Code: Select all
// <summary>
/// The CustomerTab item.
/// </summary>
public Ranorex.TabPageList CustomerTab
{
get
{
return CreateAdapterForPath<Ranorex.TabPageList>("CustomerTab", "*/tabpagelist[@accessiblerole='PageTabList']", 300);
}
}
Berny
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
First of all, please download the current Ranorex 2.0 RC1 from our homepage!
When the execution stops, could you please check if your CPU is working heavily (by opening the TaskManager and looking on the Performance tab)? Then pause the execution in RanorexStudio, please,and send us the current stacktrace (to support_at_ranorex.com)?
What control framework (Win32, MFC, Windows Forms, WPF, ...) do you use?
Could you provide us a sample application or at least a snapshot of the application (right click on corresponding element in RanorexSpy and choose "Save as snapshot...")?
Thanks!
Regards,
Alex
Ranorex Support Team
When the execution stops, could you please check if your CPU is working heavily (by opening the TaskManager and looking on the Performance tab)? Then pause the execution in RanorexStudio, please,and send us the current stacktrace (to support_at_ranorex.com)?
What control framework (Win32, MFC, Windows Forms, WPF, ...) do you use?
Could you provide us a sample application or at least a snapshot of the application (right click on corresponding element in RanorexSpy and choose "Save as snapshot...")?
Thanks!
Regards,
Alex
Ranorex Support Team
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
From your log file it does not look like exection "just stops", but there is an exception logged saying an item cannot be found.
If the replay works in RanorexRecorder and does not work with the generated code, inserting a delay before the corresponding item could be the solution. The generated code in Ranorex 2 RC1 does not include delays except for manually added delay actions (the next release will include delays). Could you please try adding a delay action before the action that fails?
Regards,
Alex
Ranorex Support Team
If the replay works in RanorexRecorder and does not work with the generated code, inserting a delay before the corresponding item could be the solution. The generated code in Ranorex 2 RC1 does not include delays except for manually added delay actions (the next release will include delays). Could you please try adding a delay action before the action that fails?
Regards,
Alex
Ranorex Support Team
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact: