Skip to content

Caught error during UserRequest when running an invalid test plan and doing CTRL+C

CTRL-C is important to show this.

C:\Program Files\Keysight\Test Automation>tap run C:\Users\romadsen\Desktop\Untitle2.TapPlan --verbose
00:00:00.052 : Session       : Debug       : Session log loaded as 'C:\Program Files\Keysight\Test Automation\SessionLogs\tap 2021-02-02 13-19-05.txt'. [4.85 ms]
00:00:00.066 : Session       : Debug       : Running 'tap  run C:\Users\romadsen\Desktop\Untitle2.TapPlan --verbose' in 'C:\Program Files\Keysight\Test Automation'.
00:00:00.086 : Session       : Debug       : Microsoft Windows 10.0.18363 X64
00:00:00.086 : Session       : Debug       : .NET Framework 4.8.4250.0
00:00:00.102 : Session       : Debug       : OpenTAP Engine 9.12.2-rc.1+6c96ee05 X64
00:00:00.104 : Resolver      : Debug       : Found 22/82 assembly files. [17.3 ms]
00:00:00.143 : Resolver      : Debug       : Found match for System.Reflection.Metadata, Version=1.4.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a in C:\Program Files\Keysight\Test Automation\Dependencies\System.Reflection.Metadata.1.4.3.0\System.Reflection.Metadata.dll
00:00:00.164 : Resolver      : Debug       : Found match for System.Collections.Immutable, Version=1.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a in C:\Program Files\Keysight\Test Automation\Dependencies\System.Collections.Immutable.1.2.3.0\System.Collections.Immutable.dll
00:00:00.229 : Searcher      : Debug       : Ordered 20 assemblies according to references. [121 ms]
00:00:00.351 : PluginManager : Debug       : Loaded OpenTap. [269 us]
00:00:00.353 : PluginManager : Debug       : Loaded Keysight.OpenTap.Wpf. [2.20 ms]
00:00:00.362 : PluginManager : Debug       : Loaded OpenTap.Plugins.BasicSteps. [2.02 ms]
00:00:00.448 : PluginManager : Debug       : Loaded OpenTap.Package. [2.25 ms]
00:00:00.459 : PluginManager : Debug       : Loaded OpenTap.OSIntegration.Windows. [3.07 ms]
00:00:00.530 : PluginManager : Debug       : Loaded mscorlib. [300 ns]
00:00:00.622 : Settings      : Debug       : EngineSettings loaded from C:\Program Files\Keysight\Test Automation\Settings\Engine.xml [192 ms]
00:00:00.640 : Session       : Debug       : Session log loaded as 'C:\Program Files\Keysight\Test Automation\SessionLogs\SessionLog 2021-02-02 13-19-05.txt'. [6.38 ms]
00:00:00.646 : PluginManager : Debug       : Loaded PackageManager. [3.01 ms]
00:00:00.648 : PluginManager : Debug       : Loaded Editor. [1.67 ms]
00:00:00.650 : PluginManager : Debug       : Loaded ResultsViewer. [1.63 ms]
00:00:00.652 : PluginManager : Debug       : Loaded RunExplorer. [1.65 ms]
00:00:00.653 : PluginManager : Debug       : Loaded TimingAnalyzer. [1.61 ms]
00:00:00.655 : PluginManager : Debug       : Loaded OpenTap.Sdk.New. [1.75 ms]
00:00:00.675 : CLI           : Debug       : Executing CLI action: run
OpenTAP Command Line Interface 9.12.2-rc.1+6c96ee05

00:00:00.696 : Serializer    : Warning     : XML line 4 column 6: Unable to locate type 'Keysight.OpenTap.Plugins.TestTestSteps.SineResults'. Are you missing a plugin?
00:00:00.697 : Serializer    : Warning     : XML line 4 column 6: Unable to deserialize step.
00:00:00.700 : Serializer    : Error       : XML Line 4: Unable to locate type 'Keysight.OpenTap.Plugins.TestTestSteps.SineResults'. Are you missing a plugin?
Errors occured while loading test plan.
Parts of the test plan did not load correctly. See the log for more details.

Do you want to ignore these errors and use a corrupt test plan?
0: 'Ignore' (default)
1: 'Abort'
Please enter a number or name (Ignore): 00:00:01.666 : CLI           : Debug       : Executing CLI action: package \ check-updates
00:00:01.670 : Settings      : Debug       : No settings file exists for PackageManagerSettings. A new instance with default values has been created. [1.07 ms]
00:00:02.244 : CLI           : Information : Loaded test plan from C:\Users\romadsen\Desktop\Untitle2.TapPlan [1.55 s]
00:00:02.244 : Main          : Information : Test Plan: Untitle2
00:00:02.252 : PluginManager : Debug       : Loaded Keysight.OpenTap.Plugins.ResultListener.SQLite. [1.64 ms]
00:00:02.270 : Settings      : Debug       : ResultSettings loaded from C:\Program Files\Keysight\Test Automation\Settings\Results.xml [25.1 ms]
00:00:02.273 : tap           : Error       : A CliAction has thrown an exception: Object reference not set to an instance of an object.
00:00:02.275 : tap           : Debug       : Exception: Object reference not set to an instance of an object.
00:00:02.279 : tap           : Debug       :     at OpenTap.Cli.TestPlanRunner.RunPlanForDut(TestPlan Plan, List`1 metadata, CancellationToken cancellationToken)
00:00:02.279 : tap           : Debug       :     at OpenTap.Cli.RunCliAction.Execute(CancellationToken cancellationToken)
00:00:02.279 : tap           : Debug       :     at OpenTap.Cli.ICliActionExtensions.PerformExecute(ICliAction action, String[] parameters)
00:00:02.279 : tap           : Debug       :     at OpenTap.Cli.CliActionExecutor.Execute(String[] args)
00:00:02.280 : tap           : Debug       : Exception caught at:
00:00:02.283 : tap           : Debug       :     at Void wrapGoInProcess()
00:00:02.283 : tap           : Debug       :     at Void goInProcess()
00:00:02.283 : tap           : Debug       :     at System.Object InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
00:00:02.283 : tap           : Debug       :     at System.Object UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
00:00:02.283 : tap           : Debug       :     at System.Object Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
00:00:02.283 : tap           : Debug       :     at Void Main(System.String[])

C:\Program Files\Keysight\Test Automation>