how to test windows 10 store apps using coded UI testing? - visual-studio-2013

trying to launch an app from a coded ui testing project for windows app store.

You have probably chosen the wrong visual studio project. Under the Create new Project you have the categories Test and Windows. If you select CodedUI from the Test category, then you use the CodedUI solution for Win32, .Net forms, Wpf applications and web applications. But there is also a CodedUI project under the windows category. The project type you need to pick is called CodedUI Test Project (Universal Windows)
See screenshot here:
When you have the wrong type of project it will throw the exeption. Unfortunately at this moment these two types of projects are realy different and you need to be explicit in the type of project you use.

Related

Specify which emulator to use in Visual Studio when solution has multiple startup projects

I have a solution that contains a Xamarin forms app and a WebAPI 2 service that provides the back-end to that app.
When I set the solution to have a single startup project, I can choose which device/emulator the project should be deployed to using a dropdown in the toolbar, but when I select multiple start up projects I can no longer choose the emulator/device (the drop down list of emulators disappears). Because there is no deployment target the build then fails.
Is there another way to specify which emulator/device the Android project should launch on (maybe in code, e.g. in the project file?).
I've looked into this some time ago but didn't find any real solution other than just opening the solution twice and running the Web API and app with a single startup project.
Most of the time, I just run one project without debugging (ctrl+F5).

Nest Visual Studio Projects for Selective Sharing

This may be a duplicate of Nested projects in multiproject visual studio templates...
I have a Visual Studio solution a solution folder in it to hold all of my projects. Within that folder are a Windows Phone project, a Windows 8.1 project, and a shared project. This is what VS studio will create when making a Windows 8 Universal App.
I want to expand on this idea and put the windows non-phone code into two child projects, a W8.1 and a W10 project. Then have a shared project to hold all of the code except for the stuff not in common. The whole thing would looke like this:
solution
-windows
--windows.phone
--windows.notphone
---windows.notphone.10
---windows.notphone.8.1
---windows.notphone.shared
--windows.shared
I can't figure out how to do this since shared project and that windows folder under the solution are solution concepts, not project concepts.
I don't want to target just Windows 10 but I can't figure out another way to target both Windows 8.1 and 10 within the same project.
Question 1 is; how do I create this project structure in my solution.
Question 2 is; how can I instead just have a single windows non-phone project and have it create apps targeted for both 8.1 and 10. I don't mind running the 8.1 app on Windows 10 except that Windows sticks in that extra hamburger button that has nothing in it in my app.
I always find a solution to my problem just after posting the question. In this case, I realized that the shared project is only shared with those other projects that include it as a reference. I can create all of my projects at the same level of the tree, which seems the only way to do this, and then only use the windows-specific shared code in the windows-specific projects. The phone code would not use that windows-specific shared project.
I'd rather have a visible hierarchy though.

Change start up project in visual studio 2010

I have 2 project in my solution explorer that one of this related to windows and other related to web,now i want to run web project but it runs in windows form so i want to know how to change the control to run the web project?
you need to make the web project the start up project. Right click on the web project and choose the Set As StartUp Project.

"Calls to the web service will fail unless the Silverlight project is hosted in and launched from the same web project"

I have Downloaded demo project from here
I tried to run Silverlight project SkiResult.ThinClient from the “Solution Explorer” I have configured the database nicely as SkiResult.FullClient a WPF Project works fine and display data.
But whenever I have tried to run Silverlight project in my Solution Explorer it shows me following error message.
I have googled so much I have also found one solution that set xyz.WEB project as a Start Up Project but as u can see from below screenshot of my Solution Explorer there is no xyz.WEB project in solution.
Thank you so much.....
Try setting the SkiResult.DataService project to be the startup project. This looks very much a web project created to host a Silverlight application because:
it has a Web.config file (so it is clearly a web project)
it has a Silverlight.js file (some utility JavaScript used with Silverlight),
it has some autogenerated test pages,
it has a ClientBin folder, which is typically where the compiled Silverlight application will be copied to.
When you create a Silverlight project, Visual Studio offers to create a web application project to host the Silverlight application for you. (You don't have to create a web application - VS can generate a test webpage during the build process and use that instead.) If your Silverlight project is called Xyz, then this web application will be called Xyz.Web. However, with the solution you're dealing with above, it seems this project has been renamed from the default.

Visual Studio 2008 Publish Feature in a desktop app. What are the benefits?

Today I tried to use the publishing feature with visual studio, which creates an application manifest, and not a traditional exe.
What are the benefits of this?
I noticed each time the app starts up it does some kind of check before launching in?
When using Publish on a Windows application, you create a ClickOnce installer. You can find a lot of information about that in the official documentation. Basically, this is an alternative to creating a conventional MSI-based setup project (File/New/Project/Other Project Types/Setup and Deployment/Setup Project).
On MSDN you can find a comparison of the two approaches.

Resources