小编Vit*_*liy的帖子

简单的RTMP Python客户端

我正在寻找一个适当的RTMP python客户端或Python代码示例,至少可以执行以下操作:

  1. 正确握手与Flash服务器
  2. 将正确编码(AMF0或AMF3)"连接"消息发送到服务器(并处理结果)
  3. 发送正确编码的"订阅"消息(并处理结果)

我一直在调查RTMPy,rtmplite,fmspy库,但还没有得到任何工作.不过,rtmplite的AMF0编码功能似乎很好.

谁能指出我正确的方向?

python flash client rtmp

9
推荐指数
1
解决办法
1万
查看次数

是否可以编译带有特定标志的Go程序进行覆盖率分析?

是否可以编译带有特定标志的Go程序进行覆盖率分析?

用例:

  • 编译应用程序;
  • 运行功能自动化测试;
  • 分析报道;

应该是类似于GcovPython的覆盖范围.

非常感谢!

testing automation code-coverage go

3
推荐指数
1
解决办法
177
查看次数

处理Firefox WebDriver的"下载"窗口

我正在尝试使用Firefox的WebDriver,我想询问是否可以处理"下载"窗口(接受或拒绝传入的下载请求)?

例如,简单的代码:

import selenium.firefox.webdriver

dr = selenium.firefox.webdriver.WebDriver()
# Firefox is showed up.

# Let's say I'd want to download python.
dr.get('http://python.org/ftp/python/3.1.3/python-3.1.3.msi')
# Download window is showed up.
# How could I accept the download request?

# As I understand, the method below should return 
# two handles but I get only main window's handle. 
handles = dr.get_window_handles()

# Seems like WebDriver cannot "see" this popup.
Run Code Online (Sandbox Code Playgroud)

我已经尝试了一点,但尚未找到解决方案.我真的很感激任何提示.

非常感谢, - V.

python selenium automation webdriver

2
推荐指数
1
解决办法
7097
查看次数

标签 统计

automation ×2

python ×2

client ×1

code-coverage ×1

flash ×1

go ×1

rtmp ×1

selenium ×1

testing ×1

webdriver ×1