System.NullReferenceException

6 posts, 0 answers
  1. Madhu
    Madhu avatar
    26 posts
    Member since:
    Dec 2010

    Posted 12 Jul 2011 Link to this post

    Hello Support,

    I'm running into this situation (System.NullReferenceException: Object reference not set to an instance of an object
    )
     couple of times every day.

    We have more than 50 different scripts; every other test has coded steps. All the scripts are working as expected.


    But, while running scripts for some reason (say after 20 scripts) we closed browser
     forcefully it throws below exception. Now, we are using QA SP2; but I see same issue since long time. I’m expecting to see Failed -15 Passed Out of Total 20 executed.


    Finally, we are ending up with Failed - 0 passed out of Total 0 executed.


    Screenshot attached.


    Is there any way to solve this issue?


    Your help is really appreciated.


    Thanks,

    Madhu.




    ------------------------------------------------------------
    '7/12/2011 5:11:35 PM' - Starting execution....
    '7/12/2011 5:11:39 PM' - Detected a Silverlight Test. Setting EnableSilverlight=True
    '7/12/2011 5:12:03 PM' - Failure detected during execution. Details:
    ------------------------------------------------------------
    '7/12/2011 5:12:03 PM' - System.NullReferenceException: Object reference not set to an instance of an object.
       at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.CanRunAgainstBrowser(Browser activeBrowser, AutomationStep step, TestResult activeResult)
       at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteSteps(AutomationStepList stepList, TestResult testResult, Object codeBehindInstance, Boolean& stopExecution)
       at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTestIteration(Object codeBehindInstance)
       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)
    ------------------------------------------------------------
    '7/12/2011 5:12:03 PM' - Test completed!
  2. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    353 posts

    Posted 15 Jul 2011 Link to this post

    Hi Madhu,

    Thank you for writing.

    I looked at the screenshot and tried to reproduce the issue but I did not managed to reproduce this issue. Could you provide us a demo project that reproduces the issue. This will help us to investigate it and to give you appropriate help. I am looking forward to you reply.

    Regards,
    Dobry Zranchev
    the Telerik team
    Register today for a live 'What's New in Test Studio R1 2011 SP2' event on Tuesday, July 19 at 2pm EST!

    Have you looked at the new Online User Guide for Telerik Test Studio?
  3. Madhu
    Madhu avatar
    26 posts
    Member since:
    Dec 2010

    Posted 18 Jul 2011 Link to this post

    Hi Dobry,

    Thanks for support.

    Sorry, our application is intranet based outside access is difficult! This morning while updating one of the custom script I see attached error.
    C:\TrunkBuildScripts\Fixed Income Trades\Fixed-Income Trade-Buy.aii.vb: Line 47: (BC42104) Variable 'ExpAccruedInt' is used before it has been assigned a value. A null reference exception could result at runtime.
    I hope this error will give you more idea? But as showed in screenshot (error) I have not declared same string more than once.

    Thanks,
    Madhu.
  4. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 19 Jul 2011 Link to this post

    Hi Madhu,

    (Dobry is on vacation this week).

    To understand what is causing the "Variable 'ExpAccruedInt' is used before it has been assigned a value" we need to see the code involved. Can you send me these files (put into a .zip first):

    Future Trades Entry-SLLCL.aii
    Future Trades Entry-SLLCL.resx
    Future Trades Entry-SLLCL.aii.vb

    Once we receive those we should be able to figure out what is causing this.

    Best wishes,
    Cody
    the Telerik team
    Register today for a live 'What's New in Test Studio R1 2011 SP2' event on Tuesday, July 19 at 2pm EST!

    Have you looked at the new Online User Guide for Telerik Test Studio?
  5. Madhu
    Madhu avatar
    26 posts
    Member since:
    Dec 2010

    Posted 26 Jul 2011 Link to this post

    Hi Cody,

    1st thing sorry for late reply.

    I just created a support ticket to attach my project files.

    Thanks,
    Madhu.
  6. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 26 Jul 2011 Link to this post

    Hi Madhu,

    Thanks I received them. We will continue troubleshooting this problem in the support ticket.

    Regards,
    Cody
    the Telerik team
    Check out the Test Studio roadmap to find out more about the new performance testing functionality coming in our R2 2011 release this September!

    Have you looked at the new Online User Guide for Telerik Test Studio?
Back to Top