我怎样才能获得的数据从我的Windows Phone 7模拟器 [英] How can I get data off of my Windows Phone 7 emulator

查看:125
本文介绍了我怎样才能获得的数据从我的Windows Phone 7模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对WP7的单元测试框架,它运行在手机上。结果是相当难读,所以我将其写入到一个XDocument。

I have a unit testing framework for WP7 and it runs on the phone. The results are fairly hard to read so I am writing them to an XDocument.

我的问题是,我怎么能那么得到这个XML文件,关闭手机,并到我的桌面,其实我可以分析结果?

My question is, how can I then get this XML file off of the phone and onto my desktop where I can actually analyze the results?

我做了什么至今是把一个Debugger.Break()行权创建XML汇总后的地方。那么我可以复制/将XML贴出来VS的或检查它的权利在调试器。问题是,虽然,如果你不已经有一个调试器附着(这是很好的,当大量的的ExpectedException测试)Debugger.Attach()似乎不工作,也可手动安装VS仿真器的进程似乎什么也不做。

What I have done so far is to put a Debugger.Break() line right after where the summary xml is created. I can then copy/paste the xml out of VS or inspect it right in the debugger. The problem is though, that if you don't already have a debugger attached (which is good when lots of ExpectedException tests) Debugger.Attach() seems to not work, also manually attaching VS to the emulator processes seems to do nothing.

我试图运行一些额外的命令行参数的模拟器,所以我可以尝试看看,如果我能得到它用我的实际硬盘驱动器,因为它是自己的磁盘,但我找不到不像是会得到它的工作...

I tried running the emulator with some extra command line parameters so I could try to see if I could get it to use my actual hard drive as it's own disk but I couldn't seem to get it to work...

PS它可能不是合理的弹开一个新的进程,例如Web服务器来监听此数据。我知道该怎么做,我只想宁可不要。

PS it's probably not reasonable to pop open a new process such as a webserver to listen for this data. I know how to do that, I would just rather not.

那么,如何赫克你得到的东西掉这些手机??

So how the heck do you get stuff off of these phones??

推荐答案

看一看有关仿真器自动化这个文章从贾斯汀天使。结果
,还包括如何远程读取和写入文件的详细信息从/向模拟器/设备独立存储。

Have a look at this article about emulator automation from Justin Angel.
It includes details on how to remotely read and write files from/to emulator/device isolated storage.

正如你所指出的其他替代方法是有applciation结果发送到[本地] Web服务器。

As you pointed out the other alternative would be to have the applciation send the results to a [local] web server.

这篇关于我怎样才能获得的数据从我的Windows Phone 7模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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