marina_kachko
11 years agoOccasional Contributor
Creating Self-Testing Application Error
Hi,
I read your guide about how to create Self-Testing Application by copying the script I get in test complete to visual studio and editing it from JScript to C#. You wrote in your'e help documents that I need to add "using AutomatedQA.TestComplete.Connect" but I get an error "Error 1 A using namespace directive can only be applied to namespaces; 'AutomatedQA.TestComplete.Connect' is a type not a namespace C:\Users\Marina.Kachko\AppData\Local\Temporary Projects\Project1\Class1.cs 5 7 Project1".
I don't know what to do because if I remove it, it doesn't recognaize my app. for example:
"TestedApps.ServoStudio_IM.Run();" and I get the error : "Error 2 'AutomatedQA.TestComplete.Connect.TestedAppsClass' does not contain a definition for 'ServoStudio_IM' and no extension method 'ServoStudio_IM' accepting a first argument of type 'AutomatedQA.TestComplete.Connect.TestedAppsClass' could be found (are you missing a using directive or an assembly reference?) C:\Users\Marina.Kachko\AppData\Local\Temporary Projects\Project1\Class1.cs 37 24 Project1
please advice,
Thank you,
Marina
"
I read your guide about how to create Self-Testing Application by copying the script I get in test complete to visual studio and editing it from JScript to C#. You wrote in your'e help documents that I need to add "using AutomatedQA.TestComplete.Connect" but I get an error "Error 1 A using namespace directive can only be applied to namespaces; 'AutomatedQA.TestComplete.Connect' is a type not a namespace C:\Users\Marina.Kachko\AppData\Local\Temporary Projects\Project1\Class1.cs 5 7 Project1".
I don't know what to do because if I remove it, it doesn't recognaize my app. for example:
"TestedApps.ServoStudio_IM.Run();" and I get the error : "Error 2 'AutomatedQA.TestComplete.Connect.TestedAppsClass' does not contain a definition for 'ServoStudio_IM' and no extension method 'ServoStudio_IM' accepting a first argument of type 'AutomatedQA.TestComplete.Connect.TestedAppsClass' could be found (are you missing a using directive or an assembly reference?) C:\Users\Marina.Kachko\AppData\Local\Temporary Projects\Project1\Class1.cs 37 24 Project1
please advice,
Thank you,
Marina
"