Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一个 jmeter 脚本来执行数据库功能测试。我有一个 Windows 服务,它每隔 X 间隔运行一次,它会在完成后更新某些数据库记录。我需要能够远程运行 Windows 服务并验证数据库更改。
是否可以使用sc \\machine stop <service>jmeter 远程运行 Windows 服务? 如果是,我该怎么做?
sc \\machine stop <service>
感谢任何建议!
查看OS Process Sampler。
对于这样的命令sc SERVER_NAME stop SERVICE_NAME,它将被配置为:
sc SERVER_NAME stop SERVICE_NAME