[UWP] Appxmanifest驱动测试 [英] [UWP]Appxmanifest driven testing

查看:95
本文介绍了[UWP] Appxmanifest驱动测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个UAP应用。作为应用程序功能的一部分,我对端点进行Web调用。作为测试dev端点与prod端点的一部分,我在想是否有任何方法可以通过清单来实现它?基本上,我想的是我的代码中的
我将尝试从清单中读取密钥,如果我在那里找到它,我将转到该端点,否则我将转到prod端点。

I am creating an UAP app. As part of the functionality of the app, I make a web call to an endpoint. As part of testing the dev endpoint versus prod endpoint, I was thinking if there's any way I can do it thru manifest? Basically, what I was thinking is in my code I will try to read a key from the manifest and if I find it there, I will go to that endpoint, otherwise I am going to the prod endpoint.

可以这样做吗?我有点卡住所以关于这个的任何想法/指针都会非常有用。

Can this be done? I am kind of stuck so any idea/pointer regarding this will be really helpful.

推荐答案

你好Nemo666,

Hi Nemo666,

我们可以阅读Appxmanifest文件并获取其内容。但我很困惑你想要实现什么功能?

We can read the Appxmanifest file and get its content. But I am confused what function do you want to implement?

通常,我们将一些带有密钥的xaml源作为资源放入App.xaml或作为页面资源而不是清单。

Generally, we put some xaml source with a key as a resource into the App.xaml or as a page resource but not the manifest.

致以最诚挚的问候,

Breeze


这篇关于[UWP] Appxmanifest驱动测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆