Strange error message

4 posts, 0 answers
  1. wish
    wish avatar
    43 posts
    Member since:
    Aug 2011

    Posted 01 Sep 2011 Link to this post

    Hi plamen,

    i got below exception message suddenly from today morning.,

    can you provide a solution for this issue..which am facing...

    Thanks
    Hari

    -----------------------------------------------------------------------------------------------
    <RunResult Type="ArtOfTest.WebAii.Design.Execution.RunResult" Version="2011.1.829.0">
      <TestListName Type="System.String">LoginMMX</TestListName>
      <StartTime Type="System.DateTime">2011-09-01 16:40:00Z</StartTime>
      <EndTime Type="System.DateTime">2011-09-01 16:40:04Z</EndTime>
      <DataCollectors />
      <TestResults>
        <Item Type="ArtOfTest.WebAii.Design.Execution.TestResult" Version="2011.1.829.0">
          <TestId Type="System.String">944d1817-f226-4c65-9f0f-20bcd8f158eb</TestId>
          <TestName Type="System.String">Login</TestName>
          <TestPath Type="System.String">Login.tstest</TestPath>
          <ProjectPath Type="System.String">
          </ProjectPath>
          <ResultType Type="ArtOfTest.Common.Design.ResultType">Fail</ResultType>
          <AutomationStepResults />
          <NotRunStepDescriptions>
            <Item Type="System.String">Navigate to : 'http://lmq3/sgx'</Item>
            <Item Type="System.String">radmaskedtextbox: click with '1' offset action.</Item>
            <Item Type="System.String">radmaskedtextbox: type 'sgx001' text action.</Item>
            <Item Type="System.String">LeftClick on Item1Textboxview</Item>
            <Item Type="System.String">Type 'sgx1234' into PasswordPasswordbox</Item>
            <Item Type="System.String">Wait for 'LoginTextblock' text Same 'Login'</Item>
            <Item Type="System.String">Click LoginButtonButton</Item>
            <Item Type="System.String">Wait for 'SGXTextblock' text Same 'SG X'</Item>
          </NotRunStepDescriptions>
          <PerStepMessages Type="System.String">------------------------------------------------------------
    '9/1/2011 9:40:00 AM' - Starting execution....
    '9/1/2011 9:40:00 AM' - Detected a Silverlight Test. Setting EnableSilverlight=True
    '9/1/2011 9:40:03 AM' - Detected custom code in test. Locating test assembly: IndividualScripts.dll.
    '9/1/2011 9:40:03 AM' - Failure detected during execution. Details:
    ------------------------------------------------------------
    '9/1/2011 9:40:03 AM' - System.NotSupportedException: The invoked member is not supported in a dynamic assembly.
       at System.Reflection.Emit.InternalAssemblyBuilder.get_Location()
       at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.EnsureAssemblyExists(String assembly, String folder)
       at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.EnsureAssemblyExists(Test testcase, String folder)
       at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.CreateCodedTestInstance(Test test, TestResult result, String binariesFolder)
       at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult)
       at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(Test test, Settings settings, String deploymentFolder, String binariesFolder, ExecutionType exeType, Guid firstStepGuid, Guid lastStepGuid, IntPtr existingBrowserHandle, DebuggerOptions debuggerOptions)
    ------------------------------------------------------------
    '9/1/2011 9:40:04 AM' - Test completed!
    </PerStepMessages>
          <TotalNumberOfPassedSteps Type="System.Int32">0</TotalNumberOfPassedSteps>
          <ExecutingTestStepCount Type="System.Int32">0</ExecutingTestStepCount>
          <TotalNumberOfNotRunSteps Type="System.Int32">0</TotalNumberOfNotRunSteps>
          <IsDataDrivenResult Type="System.Boolean">False</IsDataDrivenResult>
          <SeparatorLineCharCount Type="System.Int32">60</SeparatorLineCharCount>
          <ExecutionType Type="ArtOfTest.Common.Design.ExecutionType">QuickExecution</ExecutionType>
          <EndTime Type="System.DateTime">2011-09-01 16:40:03Z</EndTime>
          <StarTime Type="System.DateTime">2011-09-01 16:40:00Z</StarTime>
          <DataIterationResults />
        </Item>
      </TestResults>
      <ResultId Type="System.String">4de5cb9d-9666-4496-a3dd-28677c767b39</ResultId>
      <Machine Type="ArtOfTest.WebAii.Design.Execution.Scheduling.Machine" Version="2011.1.829.0">
        <Id Type="System.String">00000000-0000-0000-0000-000000000000</Id>
        <NetworkName Type="System.String">PPIMMXW20</NetworkName>
        <OperatingSystem Type="System.String">Windows 7</OperatingSystem>
        <InstalledBrowsers>
          <Item Type="ArtOfTest.WebAii.Design.Execution.Scheduling.BrowserInformation" Version="2011.1.829.0">
            <BrowserType Type="ArtOfTest.WebAii.Core.BrowserType">InternetExplorer</BrowserType>
            <Version Type="System.String">8.0.7600.16385</Version>
          </Item>
        </InstalledBrowsers>
        <Status Type="ArtOfTest.WebAii.Design.Execution.Scheduling.MachineStatus">Ready</Status>
        <DBState Type="System.Int32">0</DBState>
      </Machine>
    </RunResult>
    --------------------------------------------------------------------------------------------------------------------------------
  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 03 Sep 2011 Link to this post

    Hello Wish, 
        please give me some additional info on this.

    Does the issue reproduce persistently?
    In order to analyze the problem we'll have to reproduce this locally. Please provide the necessary steps to hit the problem.

    If the problem occurs consistently when you're working with your project then it might be best for you to send us your test project so that we may examine it.

    Please provide as much info as possible.

    Best wishes,
    Stoich
    the Telerik team
    Vote for Telerik Test Studio at the Annual Automation Honors Voting!
  3. wish
    wish avatar
    43 posts
    Member since:
    Aug 2011

    Posted 04 Sep 2011 Link to this post

    Hi stoich..

    ithe issue got resolved...

    let me explain the scenario:iam using below below code to execute my test script:

    Actual code


    ArtOfTest.WebAii.Design.Execution.TestInfo test1 = new ArtOfTest.WebAii.Design.Execution.TestInfo(Guid.NewGuid().ToString(), @"C:\Users\xxxxx\Documents\Test Studio Projects\IndividualScripts\" + row.Cells[0].Text + ".tstest");
    ArtOfTest.WebAii.Design.Execution.TestInfo test2 = new ArtOfTest.WebAii.Design.Execution.TestInfo(Guid.NewGuid().ToString(), @"C:\Users\xxxxx\Documents\Test Studio Projects\IndividualScripts\" + row.Cells[1].Text + ".tstest");

    ArtOfTest.WebAii.Design.Execution.TestList listcol = new ArtOfTest.WebAii.Design.Execution.TestList("testdatabind", "");
    listcol.Tests.Add(test1);
    listcol.Tests.Add(test2);

    listcol.Settings.Web.RecycleBrowser = true;
    listcol.Settings.UnexpectedDialogAction = ArtOfTest.WebAii.Core.UnexpectedDialogAction.HandleAndContinue;
    listcol.SaveToListFile(@"C:\Users\xxxxx\Documents\Test Studio Projects\IndividualScripts");

    ArtOfTest.WebAii.Design.Execution.CommandLineRunner cmd=new ArtOfTest.WebAii.Design.Execution.CommandLineRunner("","");
    cmd.ExecuteTestList(@"C:\Users\xxxxx\Documents\Test Studio Projects\IndividualScripts\TestLists\testdatabind.aiilist");

    the issue here is by using commandlinerunner, while executing the test scripts list it is giving this error...becos few of test steps in side the testscirpt are custom code based.......i mean i made small chnages inside the code behind of this test step of testscript...

    hence it is throwing this error...
    modeified code


    ArtOfTest.WebAii.Design.Execution.TestInfo test1 = new ArtOfTest.WebAii.Design.Execution.TestInfo(Guid.NewGuid().ToString(), @"C:\Users\xxxxx\Documents\Test Studio Projects\IndividualScripts\" + row.Cells[0].Text + ".tstest");
    ArtOfTest.WebAii.Design.Execution.TestInfo test2 = new ArtOfTest.WebAii.Design.Execution.TestInfo(Guid.NewGuid().ToString(), @"C:\Users\xxxxx\Documents\Test Studio Projects\IndividualScripts\" + row.Cells[1].Text + ".tstest");

    ArtOfTest.WebAii.Design.Execution.TestList listcol = new ArtOfTest.WebAii.Design.Execution.TestList("testdatabind", "");
    listcol.Tests.Add(test1);
    listcol.Tests.Add(test2);

    listcol.Settings.Web.RecycleBrowser = true;
    listcol.Settings.UnexpectedDialogAction = ArtOfTest.WebAii.Core.UnexpectedDialogAction.HandleAndContinue;
    listcol.SaveToListFile(@"C:\Users\hvadde\Documents\Test Studio Projects\IndividualScripts");

    System.Diagnostics.ProcessStartInfo psi = new ProcessStartInfo();
     psi.WorkingDirectory = @"C:\Program Files (x86)\Telerik\Test Studio 2011.1\Bin\";
     psi.FileName = "ArtOfTest.Runner.exe";
     psi.UseShellExecute = false;
    psi.Arguments = " list=" + "\"" + @"C:\Users\xxxxx\Documents\Test Studio Projects\IndividualScripts\TestLists\testdatabind.aiilist" + "\"";
     Process p = Process.Start(psi);
     p.WaitForExit();

     
    hence execution is going smooth....

    can i know the reason behind behind...what is the issue behind the actual code mentioned above?????

    Thanks.,
    Hari

  4. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 07 Sep 2011 Link to this post

    Hi Wish,

    Your method for programmatically running tests is not officially supported. We don't support executing tests lists programmatically. We do support executing individual tests via code like this:

    Settings mySettings = new Settings();
    mySettings.Web.RecycleBrowser = true;
    mySettings.UnexpectedDialogAction = ArtOfTest.WebAii.Core.UnexpectedDialogAction.HandleAndContinue;
    ResultSummary results1 = ArtOfTest.WebAii.Design.Execution.RunHelper.Test(@"c:\testprojectdir\test.aii", mySettings, @"c:\testprojectdir\bin\debug\testproject.dll");


    Kind regards,
    Cody
    the Telerik team
    Vote for Telerik Test Studio at the Annual Automation Honors Voting!
Back to Top