收集桌面应用程序的使用数据

发布于 2024-08-12 03:44:00 字数 514 浏览 2 评论 0原文

我将为一个科学项目对我的软件进行一些大规模的可用性测试。我们的实验室约有 30 台运行 Windows XP 的计算机。我们的应用程序是用 PythonPyGTK

我们希望能够在没有工作人员干预的情况下收集以下内容(在我们的应用程序启动时自动收集):

  • 用户会话的记录(例如 GtkRecordMyDesktop)
  • 我们的应用程序产生的所有回溯和错误
  • 用户到达应用程序中的某个点之前的时间量。
  • 在应用程序退出时进行的简短调查

我认为最后一点非常简单,我知道如何存储数据,但我不知道如何实现其他点。

I'm going to be running some large scale usability tests of my software for a science project. We have a lab of about 30 computers running Windows XP. Our application is written in Python and PyGTK.

We want to be able to collect the following without staff intervention (automatically on our application start):

  • A recording of the user session (a la GtkRecordMyDesktop)
  • All tracebacks and errors produced by our application
  • Amount of time till the user reaches a certain point in the application.
  • A short survey presented at application exit

I think the last point is pretty straightforward, and I know how I'd store the data, but I don't know how I'd implement the other points.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

乖乖公主 2024-08-19 03:44:00

对于你的第一点,我相信你可以很容易地直接从你的Python代码驱动 recordMyDesktop --我自己还没有这样做,但是文档使它看起来很简单(并且它的两个现有前端都是Python 编写的)。

对于第二点,将 sys.excepthook 设置为拦截异常并通过 traceback 准备报告模块。

对于第三点,在开始时注册时间(例如通过 datetime.datetime.now),然后在您关心的时间点再次进行操作,并记录差异。

For your first point, I believe you can drive recordMyDesktop directly from your Python code pretty easily -- I haven't done so, myself, but the docs make it look easy (and both existing frontends to it are in Python).

For your second point, set sys.excepthook to intercept the exceptions and prepare your report via the traceback module.

For your third point, register the time at start (e.g. via datetime.datetime.now) and again at the point you care about, and log the difference.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文