Testing Metro style windows 8 app
Re: Testing Metro style windows 8 app
Ahhh, wait a minute now...
Please check this link:
http://stackoverflow.com/questions/1174 ... deployment
Seems you need to package and deploy your app since its a Metro style app.
In the second link see the section titled "Deploy and run".
Please check this link:
http://stackoverflow.com/questions/1174 ... deployment
Seems you need to package and deploy your app since its a Metro style app.
In the second link see the section titled "Deploy and run".
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
-
- Posts: 16
- Joined: Fri Dec 07, 2012 6:05 pm
Re: Testing Metro style windows 8 app
Yes I am trying to do this with package only. Also If i try to invoke a live tile , ranorex cannot locate it even if the path is specified correctly .
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Testing Metro style windows 8 app
Hello,
Microsoft added a lot of new security features in Windows 8. These features make it more difficult to access apps for Ranorex.
Please try to insert the following lines at the beginning of your main method.
Regards,
Bernhard
Microsoft added a lot of new security features in Windows 8. These features make it more difficult to access apps for Ranorex.
Please try to insert the following lines at the beginning of your main method.
if (Ranorex.Core.Util.IsRestartRequiredForWinAppAccess) return Ranorex.Core.Util.RestartWithUiAccess();Please let me know if it works.
Regards,
Bernhard
-
- Posts: 16
- Joined: Fri Dec 07, 2012 6:05 pm
Re: Testing Metro style windows 8 app
Thanks Bernhard.
These lines will go in Program.cs of ranorex suite or my class file in visual studio? And also do i need to reference any ranorex modules in my project in visual studio?
These lines will go in Program.cs of ranorex suite or my class file in visual studio? And also do i need to reference any ranorex modules in my project in visual studio?
-
- Posts: 16
- Joined: Fri Dec 07, 2012 6:05 pm
Re: Testing Metro style windows 8 app
I upgraded my ranorex version to 4 and also made the changes suggested. Now i dont get any launch of my app or not even I get any error message. Ranorex runs and stops with no test report.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Testing Metro style windows 8 app
Hello,
Could you please describe exactly how you start your app. Do you start the app with Ranorex Studio? If yes, did you start Ranorex as Administrator?
Thank you!
Regards,
Bernhard
Could you please describe exactly how you start your app. Do you start the app with Ranorex Studio? If yes, did you start Ranorex as Administrator?
Thank you!
Regards,
Bernhard
-
- Posts: 16
- Joined: Fri Dec 07, 2012 6:05 pm
Re: Testing Metro style windows 8 app
Hi,
Yes I start the app from Ranorex Studio after starting Ranorex as administrator , But even the same nothing happens . ranorex starts and stops.
Yes I start the app from Ranorex Studio after starting Ranorex as administrator , But even the same nothing happens . ranorex starts and stops.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Testing Metro style windows 8 app
Hello,
Please make sure that you don't enable 'Run this program as an administrator in the 'Compatibility tab' of Ranorex Studio shortcut. You need to right-click on Ranorex Studio an select 'Run as administrator' as mentioned by Bernhard.
Could you please try out the attached example and run it in Ranorex Studio?
It should open and close the 'Weather' app in Windows 8.
Could you please post a screenshot from the behavior?
Is your AUT a custom app or a Windows 8 integrated app?
Regards,
Markus (T)
Please make sure that you don't enable 'Run this program as an administrator in the 'Compatibility tab' of Ranorex Studio shortcut. You need to right-click on Ranorex Studio an select 'Run as administrator' as mentioned by Bernhard.
Could you please try out the attached example and run it in Ranorex Studio?
It should open and close the 'Weather' app in Windows 8.
Could you please post a screenshot from the behavior?
Is your AUT a custom app or a Windows 8 integrated app?
Regards,
Markus (T)
You do not have the required permissions to view the files attached to this post.
-
- Posts: 16
- Joined: Fri Dec 07, 2012 6:05 pm
Re: Testing Metro style windows 8 app
Hello,
The code sample which you sent works well with ranorex. I want to know how do you invoke the weather app for recording through ranorex? I meant the code for invoking it.. I am trying a simple scenario of invoking the application through Program.cs rather than record and play.
I am trying to work with the custom app which i have developed and it is not in Windows store .. I am trying to use ranorex to test the app completely before submitting or deploying in windows store...
The code sample which you sent works well with ranorex. I want to know how do you invoke the weather app for recording through ranorex? I meant the code for invoking it.. I am trying a simple scenario of invoking the application through Program.cs rather than record and play.
I am trying to work with the custom app which i have developed and it is not in Windows store .. I am trying to use ranorex to test the app completely before submitting or deploying in windows store...
-
- Posts: 16
- Joined: Fri Dec 07, 2012 6:05 pm
Re: Testing Metro style windows 8 app
I am able to generate a recording now with record and play . Thanks for all the help.
But i wanted to know if I can generate a recording manually as in invoking the app from Program.cs file of Ranorex studio.
But i wanted to know if I can generate a recording manually as in invoking the app from Program.cs file of Ranorex studio.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Testing Metro style windows 8 app
Hi,
Yes, you can also manually "generate" a recording as described in the following blog:
Did you know… that you can manually generate a recording?.
Just one question, why are you invoking your app in the Program.cs?
Regards,
Markus
Yes, you can also manually "generate" a recording as described in the following blog:
Did you know… that you can manually generate a recording?.
Just one question, why are you invoking your app in the Program.cs?
Regards,
Markus
-
- Posts: 16
- Joined: Fri Dec 07, 2012 6:05 pm
Re: Testing Metro style windows 8 app
Thank you.
I was just trying through Program.cs if i could. But its ok i figured out other way around.
I was just trying through Program.cs if i could. But its ok i figured out other way around.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Testing Metro style windows 8 app
You can also use the Host.ActivateWindowsApp method to activate your app. When the app is not started, yet, this method will start the app. If it's already started, it will bring it to front.
You can get the values for the "appId" and the "appFamilyName" arguments by tracking your app with Ranorex Spy.
Regards,
Alex
Ranorex Team
You can get the values for the "appId" and the "appFamilyName" arguments by tracking your app with Ranorex Spy.
Regards,
Alex
Ranorex Team
-
- Posts: 16
- Joined: Fri Dec 07, 2012 6:05 pm
Re: Testing Metro style windows 8 app
Thank you .