'Init' does not exist in the current context (CS0103)
Posted: Thu Apr 09, 2015 9:10 pm
Hi,
I am getting the error :
The name 'Init' does not exist in the current context (CS0103)
ExitSDDSession.usercode:
Posts: 23
Joined: Sat Aug 30, 2014 5:17 pm
I am getting the error :
The name 'Init' does not exist in the current context (CS0103)
ExitSDDSession.usercode:
public partial class ExitSDDSession
{
/// <summary>
/// This method gets called right after the recording has been started.
/// It can be used to execute recording specific initialization code.
/// </summary>
private void Init()
{
// Your recording specific initialization code goes here.
}
}
ExitSDDSession.cs code that's where I am getting the error :
public partial class ExitSDDSession : ITestModule
{
/// <summary>
/// Holds an instance of the ServiceReadiness.ServiceReadinessRepository repository.
/// </summary>
public static ServiceReadiness.ServiceReadinessRepository repo = ServiceReadiness.ServiceReadinessRepository.Instance;
static ExitSDDSession instance = new ExitSDDSession();
/// <summary>
/// Constructs a new instance.
/// </summary>
public ExitSDDSession()
{
}
/// <summary>
/// Gets a static instance of this recording.
/// </summary>
public static ExitSDDSession Instance
{
get { return instance; }
}
#region Variables
#endregion
/// <summary>
/// Starts the replay of the static recording <see cref="Instance"/>.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Ranorex", "5.1.1")]
public static void Start()
{
TestModuleRunner.Run(Instance);
}
/// <summary>
/// Performs the playback of actions in this recording.
/// </summary>
/// <remarks>You should not call this method directly, instead pass the module
/// instance to the <see cref="TestModuleRunner.Run(ITestModule)"/> method
/// that will in turn invoke this method.</remarks>
[System.CodeDom.Compiler.GeneratedCode("Ranorex", "5.1.1")]
void ITestModule.Run()
{
Mouse.DefaultMoveTime = 300;
Keyboard.DefaultKeyPressTime = 100;
Delay.SpeedFactor = 1.0;
Init();
Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SymptomDrivenDiagnostics.Session_campagins_recn' at 36;15.", repo.SymptomDrivenDiagnostics.Session_campagins_recnInfo, new RecordItemIndex(0));
repo.SymptomDrivenDiagnostics.Session_campagins_recn.Click("36;15");
Delay.Milliseconds(200);
Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'SymptomDrivenDiagnostics.LogoutIcon' at 17;35.", repo.SymptomDrivenDiagnostics.LogoutIconInfo, new RecordItemIndex(1));
----------------
-------------------
zshadowPosts: 23
Joined: Sat Aug 30, 2014 5:17 pm