store test kit do not appear in my Project menu - c#

I am testing Windows Phone App 8.1 with Visual Studio 2013. I found out that the option Store Test Kit does not appear in the menĂº.
I have download a code example from https://channel9.msdn.com/Series/Windows-Phone-8-Development-for-Absolute-Beginners/Part-23-Testing-and-Submitting-to-the-Store and it appear in that example.
What i am missing? I need to register my App?
Thanks.

The video was done with vs2012, which has that nice Store Test interface with drag and drop features. I don't think that is available in vs2013 ultimate (the version that I am using). However, Run Project > Store > Launch Windows Phone App Certification Test.
NB: You may not run the test if you have not yet installed the certification kit, which is available here: https://dev.windows.com/en-us/develop/app-certification-kit
If the test succeeds you can go ahead and publish the app.
If it fails then you will get a nice report telling you exactly why it failed. You will then need to sort them out manually one at a time. Build your application every time after correction and run the test until it succeeds.
That is what I did.

Related

Getting app to install emulator in a xamarin project without having the source code

I have looked through the Microsoft documentation but everything seems to want you to run everything with the development code. I used a bitbar tutorial to help start my C# xamarinui test framework. I have the emulators working I just want the apk and ios apps to install as the first test. I know how to drag and drop and put the app on the phone manually. I am looking for a way to get the app to install and launch through test code or by some operation. I do not have access to the source.
Only for the Android case, google for the apk, usually they are available on sites like apk pure etc. If the apk has executables for x86 inside you could install in on android simulator using just drag and drop.
For iOS this seems not possible as the installer has to be signed with appropriate profiles that only app developer has in his possession.

App crashes after installing a Xamarin-Forms app

I have 3 self-written apps on my phone. 2 written with Xamarin.Android and one written with Xamarin.Forms. But there is a big problem. It always work only 2 or 1 app depending on which of the 3 apps was installed last. If one of the two Xamarin.Android apps was installed last, then both Android apps work. The Forms App, however, crashes immediately. Same the other way around. If the Forms app was installed last, it works fine. The two Android apps crash immediately.
Is there any reason for that? Are the frameworks not compatible?
I had the same problem trying to install the apk from Debug folder.
Steps that worked for me:
- Disable "Use Shared Runtime"
- In Advanced Settings, Select supported architecture
Check the screenshot if not clear
If you are deploying a debug apk into the same device, with different Runtimes, when the apk is installed will remove the previous / override. So, you will need to: disable Shared Runtime, or make sure the dependencies are all the same in all the applications
If you are using visual studio then Check "Application output" with release on device.
In Application Output you can see if any exception is causing problem..

Windows Phone Unit Test App associated with won't work

You cannot vote on your own post
0
Hello Everyone,
note: this has been posted on the Windows Phone MSND forum on which I
was adviced to ask the same question on the Live Connect SDK
forums...that are now on stackoverflow.
I'd like to use some Unit Tests to automatically verfiy my usage of the Live SDK to access One Drive.
It seams that for the LiveSDK to be able to connect to the services the app has to be associated to the store.
For the record I'm using Visual Studio 2013 and I'm working on a Windows Phone 8.1 application.
Unfortunately a Windows Phone Unit Test App that has been associated to the store does not seem to work. This is what I see in the Visual Studio output:
========== Discover test finished: 1 found (0:00:00,4120231) ==========
------ Run test started ------
Deploying to Phone Internal Storage...
Creating a new clean layout...
Copying files: Total <1 mb to layout...
Registering the application to run from layout...
Deployment complete (2666ms). Full package name: "MyTestApp_1.1.0.0_x86__v05mkgjvmsq4a"
The application is not installed.
========== Run test finished: 0 run (0:00:03,3748925) ==========
Has someone already managed to use the LiveSDK within unit tests? If yes, would you please so kind to share how you achieved that?
Any piece of idea to get that working will be appreciated !
Many thanks in advance,
Bruno
Why do you want to unit test a foreign SDK? You should mock the SDK and verify that you call if correctly and react correctly for predefined results.
My goal is here not to test the Live Connect SDK but my usage of it. And by usage I mean the real one not against a mock: I'd like to verify that my code works well with the real SDK.
Of course to actually test my own classes I do have a mock of the SDK.
I had this issue but it had nothing to do with the Live SDK (as I'm not using it).
Ultimately I added a new Unit Test (Windows Phone 8.1) project, and brought all my tests over to it, removing the old one. I couldn't figure out how to fix it otherwise.
Why do you want to unit test a foreign SDK? You should mock the SDK and verify that you call if correctly and react correctly for predefined results.
I guess you are also not testing the other Microsoft Phone SDKs :-)

c# msbuild execution from command line on some computersskips the signing phase WP8

I am currently writing a Windows app that builds and signs WP8 projects. msbuild command is executed as a program inside my console application which is written in C#. I am running this command :
msbuild /p:SignXap=true /p:SignKeyFile=path\key.pfx target.csproj (password is extracted)
It executes well on my computer but on another computer it skips the signing phase. Basically everything executes as usual but just skips the signing like it wasnt defined. There are no error messages and since these outputs are produced by msbuild.exe there is nothing much that I can do.
Certificate is added to the store and app has admin privelages.
What can be different between two machines that it just skips the signing phase without complaining? Does anyone faced a similar problem or have an idea?
Thank you!!
You could cross check on the following requirements for company apps build as in the link
http://msdn.microsoft.com/en-us/library/windowsphone/develop/dn168929(v=vs.105).aspx#BKMK_msbuild
Command-line precompilation and signing are available only for apps that target Windows Phone 8.
Command-line precompilation and signing for Windows Phone 8 projects require Visual Studio 2012 Update 2. The command-line properties described in this section are not included in the Windows Phone SDK 8.0.

Testing Windows Store Application on other machines

I want to test my windows 8 metro application on others PC such as my MS Surface or my friend's PC. but when I run it, I get following error:
This application can only run in the context of an AppContainer.
i searched a lot and found this but this topic for 2011 and VS 2011, so the solution does not work anymore.
please advice me.
The solution from the referenced thread should still work, especially point 2.
Right-clicking the project and choosing "Store"->"Create App Package..." (deselect uploading to the store) will create a folder with a package for your app and the dependencies.
In the same folder there is a PowerShell script. When run, it will probably ask you to change your ExecutionPolicy the first time, but then it will install the app just like a regular app that was installed from the store.

Categories

Resources