Dear members and support-team,
is it possible to testing Microsoft Dynamic AX with Ranorex?
Because there are different controllIDs for each new Application Instance and now windows names.
Thanks for help
Testing MS Dynamic AX with Ranorex?
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Testing MS Dynamic AX with Ranorex?
Hi,
You can set a weight Plug-In to filter out the ControlIDs.
Therefore please take a look to following link
http://www.ranorex.com/blog/eliminate-d ... norexpaths
Regards,
Peter
Ranorex Team
Typically all of the Microsoft application are testable with Ranorex. We have a few customers which test Dynamic AX with Ranorex and they had no problem so far.mathias wrote:is it possible to testing Microsoft Dynamic AX with Ranorex?
Because there are different controllIDs for each new Application Instance and now windows names.
You can set a weight Plug-In to filter out the ControlIDs.
Therefore please take a look to following link
http://www.ranorex.com/blog/eliminate-d ... norexpaths
Regards,
Peter
Ranorex Team
Re: Testing MS Dynamic AX with Ranorex?
First of all, thanks for your fast answer.
I tried but I have some trouble with the plugin.
I did the steps from here: http://www.ranorex.com/blog/eliminate-d ... norexpaths
but i get an error message:
That´s my ranorex spy view:
On the attachment is the edit Ranorex.Plugin.RxPathWeights.config
What´s wrong?
I tried but I have some trouble with the plugin.
I did the steps from here: http://www.ranorex.com/blog/eliminate-d ... norexpaths
but i get an error message:
Code: Select all
Failed to load plugins from user directory. Failed to initialize plugin 'rxpathweights'. The given key was not present in the dictionary.
Show/Hide Stacktrace
at Ranorex.Core.PluginManager.LoadDefaultPlugins(Boolean nonBlocking) at Ranorex.Core.PluginManager.LoadDefaultPluginsSuppressible(Boolean nonBlocking) at Ranorex.Core.ElementEngine.get_Instance() at Ranorex.Core.Testing.TestModuleRunner.RunStandalone(ITestModule module, String reportFilename, Boolean generateReport, String standaloneModuleName, CaseInsensitiveString guid)
On the attachment is the edit Ranorex.Plugin.RxPathWeights.config
What´s wrong?
You do not have the required permissions to view the files attached to this post.
Re: Testing MS Dynamic AX with Ranorex?
It´s not working. Either I am right or i didn´t understand the solution.Support Team wrote:Hi,Typically all of the Microsoft application are testable with Ranorex. We have a few customers which test Dynamic AX with Ranorex and they had no problem so far.mathias wrote:is it possible to testing Microsoft Dynamic AX with Ranorex?
Because there are different controllIDs for each new Application Instance and now windows names.
You can set a weight Plug-In to filter out the ControlIDs.
Therefore please take a look to following link
http://www.ranorex.com/blog/eliminate-d ... norexpaths
Regards,
Peter
Ranorex Team
Again, I have dynamic controllIDs for example:
Code: Select all
/element[@controlid='132971048']/element[@controlid='15000']/element[@controlid='132952336']/element[@controlid='133039048']/element/element/element[@controlid='133058904']/element[@controlid='133060496']/element[@controlid='133062088']/element[@controlid='12314']
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Testing MS Dynamic AX with Ranorex?
Hi,
Can you send us two snapshot files, one before the restart of the AUT and one after it?
Following link will show you how to generate a snapshot file.
You do not longer need to write a "RxPathWeight config file", you can set the path weights directly in the Spy settings window. You only have to click on the "Edit Path Weights..." button, then you have to search for the right "Capability" and the right "Attribute". If you have selected the specific one you can set the weight to a lower value.
Regards,
Markus
Ranorex Support Team
Are you sure, do you have tested it?And all IDs are dynamic unless the last one '12314'.
Can you send us two snapshot files, one before the restart of the AUT and one after it?
Following link will show you how to generate a snapshot file.
You do not longer need to write a "RxPathWeight config file", you can set the path weights directly in the Spy settings window. You only have to click on the "Edit Path Weights..." button, then you have to search for the right "Capability" and the right "Attribute". If you have selected the specific one you can set the weight to a lower value.
Regards,
Markus
Ranorex Support Team
Re: Testing MS Dynamic AX with Ranorex?
I started the application four times and the last controlid was the same like before.Support Team wrote:Hi,
Are you sure, do you have tested it?And all IDs are dynamic unless the last one '12314'.
Ok, different answers (see Peter above). So I delete the plugin now.Support Team wrote: You do not longer need to write a "RxPathWeight config file"...
I think the mainproblem is, that I am not really know how to solve the problem with dynamics controllids.
It would be great if you describe the solution on one example.
So here my problem:
1) Ranorex have to find a menulink in MS Dynamics AX. Called: "Kursregulierung"
2) Ranorex have to do the invoke action "Press" on this menulink
The controlids are dynamic and Ranorex Spy shows the fallowing path and informations:
Path:
Code: Select all
/form[@title~'^Microsoft\ Dynamics\ AX\ -\ E']/container/form[@controlid='65281']/element/element/element[@controlname='Submenu1' and @class='WindowsForms10.Window.8.app.0.33c0d9d' and @instance='6']/container/link[@accessiblename='LedgerExchAdj']
Maybe "live"-support is possible?
**UPDATE**
Now I tried this one: .//link[@accessiblevalue='Kursregulierung'] instead of the path above.
It works but I get a StackOverflow Error.
Code: Select all
LineageGlueRule 'msaa_child' caused OverflowException on Execute. Arithmetic operation resulted in an overflow.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Testing MS Dynamic AX with Ranorex?
Hi,
Do you have tried to set the weight for the specific attribute?
You have to use another attribute instead of the controllid, an attribute which is unique for the specific element and if there are no unique attributes you have to "ignore/delete" this element in the RxPath.
One possibility is to search for the specific element:
but i think this would take too much time.
For a better understanding how to use and edit the RxPath please take a look at the following links:
http://www.ranorex.com/support/user-gui ... ditor.html
http://www.ranorex.com/blog/ranorexpath-tips-and-tricks
http://www.ranorex.com/blog/eliminate-d ... norexpaths
Regards,
Markus
Ranorex Support Team
Do you have tried to set the weight for the specific attribute?
There are more possibilities, you can try to eliminate such Id's via the "Path Weight Editor" or you can manually change the RxPath in your repository file.I think the mainproblem is, that I am not really know how to solve the problem with dynamics controllids.
You have to use another attribute instead of the controllid, an attribute which is unique for the specific element and if there are no unique attributes you have to "ignore/delete" this element in the RxPath.
One possibility is to search for the specific element:
Code: Select all
/form[@title~'^Microsoft\ Dynamics\ AX\ -\ E']/container//link[@accessiblename='LedgerExchAdj']
For a better understanding how to use and edit the RxPath please take a look at the following links:
http://www.ranorex.com/support/user-gui ... ditor.html
http://www.ranorex.com/blog/ranorexpath-tips-and-tricks
http://www.ranorex.com/blog/eliminate-d ... norexpaths
Regards,
Markus
Ranorex Support Team
Re: Testing MS Dynamic AX with Ranorex?
ok, now I got some success, but one problem:
I do an invoke action and want to open a link:
It works, the new window opened but ranorex don´t do the next steps in the test. Ranorex searchbar stop after the searchtimeout. If I close the window then ranorex want to do the next steps...
What´s the problem?
I do an invoke action and want to open a link:
Code: Select all
Report.Log(ReportLevel.Info, "Invoke Action", "Invoking Open( ) on item 'Kursregulierung'.", repo.KursregulierungInfo, new RecordItemIndex(0));
repo.Kursregulierung.Open();
Delay.Milliseconds(0);
What´s the problem?
Re: Testing MS Dynamic AX with Ranorex?
I need some help for my last posting please.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Testing MS Dynamic AX with Ranorex?
Hi,
Which actions should be performed, after the new window was opened?
Actions on the new window or on the old one?
Can you please send us at least a Snapshot or the whole AUT?
You can send it to our Support Email Address: [email protected]
Regards,
Markus
Ranorex Support Team
Do you have checked your RxPath of the new window? It seems that Ranorex cannot find the specific elements, maybe somethings changed after the window appears.Ranorex searchbar stop after the searchtimeout
Which actions should be performed, after the new window was opened?
Actions on the new window or on the old one?
Can you please send us at least a Snapshot or the whole AUT?
You can send it to our Support Email Address: [email protected]
Regards,
Markus
Ranorex Support Team