如何在android/iOS移动测试中截图-C#?
我如何拍摄C语言android/iOS mobile自动测试中执行的不同步骤的屏幕截图?似乎有 这是一个将代码放置在如何在android/iOS移动测试中截图-C#?,c#,android,mobile,automation,screenshot,C#,Android,Mobile,Automation,Screenshot,我如何拍摄C语言android/iOS mobile自动测试中执行的不同步骤的屏幕截图?似乎有 这是一个将代码放置在OnCreateView()中的方法。: C# 您可以使用以下代码: ScenarioContext.Current.Get<IApp>("Application").Screenshot(ScenarioStepContext.Current.StepInfo.Text); ScenarioContext.Current.Get(“应用程序”).Screenshot
OnCreateView()中的方法。
:
C#
您可以使用以下代码:
ScenarioContext.Current.Get<IApp>("Application").Screenshot(ScenarioStepContext.Current.StepInfo.Text);
ScenarioContext.Current.Get(“应用程序”).Screenshot(ScenarioStepContext.Current.StepInfo.Text);
ScenarioContext.Current.Get<IApp>("Application").Screenshot(ScenarioStepContext.Current.StepInfo.Text);