Service Virtualization

  • 1.  Getting Error in calling Subprocess while staging the test case in local

    Posted Feb 06, 2017 02:17 AM

    Hi Team,

     

    I am getting the below error during execution of staged test case in local server.However when I tried to run the test case in ITR mode ,the test case is executing successfully.Need some inputs .

    Thanks in advance.

     


    ============================================================================
    | Exception:
    ============================================================================
    | Step: Subprocess Track&Trace
    ----------------------------------------------------------------------------
    | Message: Sub test case load failure: Unable to load file: name=C:/Users/gupta516/lisatmp_9.5.1/lads/B56D5C3EEC3A11E6B19DD2AF20524153/test-automation/Tests/Integration (E2E)/DATA-109/Use Case Subprocesses/CSC/GoToTrack&Trace_StoreKPNReference.tst path:[C:\Users\gupta516\lisatmp_9.5.1\lads\B56D5C3EEC3A11E6B19DD2AF20524153\test-automation\Tests\Integration (E2E)\DATA-109\Use Case Subprocesses\CSC\GoToTrack&Trace_StoreKPNReference.tst] absolutePath:[C:\Users\gupta516\lisatmp_9.5.1\lads\B56D5C3EEC3A11E6B19DD2AF20524153\test-automation\Tests\Integration (E2E)\DATA-109\Use Case Subprocesses\CSC\GoToTrack&Trace_StoreKPNReference.tst] canonicalPath:[C:\Users\gupta516\lisatmp_9.5.1\lads\B56D5C3EEC3A11E6B19DD2AF20524153\test-automation\Tests\Integration (E2E)\DATA-109\Use Case Subprocesses\CSC\GoToTrack&Trace_StoreKPNReference.tst]
    ----------------------------------------------------------------------------
    | Trapped Exception: Unable to load file: name=C:/Users/gupta516/lisatmp_9.5.1/lads/B56D5C3EEC3A11E6B19DD2AF20524153/test-automation/Tests/Integration (E2E)/DATA-109/Use Case Subprocesses/CSC/GoToTrack&Trace_StoreKPNReference.tst path:[C:\Users\gupta516\lisatmp_9.5.1\lads\B56D5C3EEC3A11E6B19DD2AF20524153\test-automation\Tests\Integration (E2E)\DATA-109\Use Case Subprocesses\CSC\GoToTrack&Trace_StoreKPNReference.tst] absolutePath:[C:\Users\gupta516\lisatmp_9.5.1\lads\B56D5C3EEC3A11E6B19DD2AF20524153\test-automation\Tests\Integration (E2E)\DATA-109\Use Case Subprocesses\CSC\GoToTrack&Trace_StoreKPNReference.tst] canonicalPath:[C:\Users\gupta516\lisatmp_9.5.1\lads\B56D5C3EEC3A11E6B19DD2AF20524153\test-automation\Tests\Integration (E2E)\DATA-109\Use Case Subprocesses\CSC\GoToTrack&Trace_StoreKPNReference.tst]
    | Trapped Message: java.io.FileNotFoundException: Unable to load file: name=C:/Users/gupta516/lisatmp_9.5.1/lads/B56D5C3EEC3A11E6B19DD2AF20524153/test-automation/Tests/Integration (E2E)/DATA-109/Use Case Subprocesses/CSC/GoToTrack&Trace_StoreKPNReference.tst path:[C:\Users\gupta516\lisatmp_9.5.1\lads\B56D5C3EEC3A11E6B19DD2AF20524153\test-automation\Tests\Integration (E2E)\DATA-109\Use Case Subprocesses\CSC\GoToTrack&Trace_StoreKPNReference.tst] absolutePath:[C:\Users\gupta516\lisatmp_9.5.1\lads\B56D5C3EEC3A11E6B19DD2AF20524153\test-automation\Tests\Integration (E2E)\DATA-109\Use Case Subprocesses\CSC\GoToTrack&Trace_StoreKPNReference.tst] canonicalPath:[C:\Users\gupta516\lisatmp_9.5.1\lads\B56D5C3EEC3A11E6B19DD2AF20524153\test-automation\Tests\Integration (E2E)\DATA-109\Use Case Subprocesses\CSC\GoToTrack&Trace_StoreKPNReference.tst]
    ----------------------------------------------------------------------------
    STACK TRACE
    java.io.FileNotFoundException: Unable to load file: name=C:/Users/gupta516/lisatmp_9.5.1/lads/B56D5C3EEC3A11E6B19DD2AF20524153/test-automation/Tests/Integration (E2E)/DATA-109/Use Case Subprocesses/CSC/GoToTrack&Trace_StoreKPNReference.tst path:[C:\Users\gupta516\lisatmp_9.5.1\lads\B56D5C3EEC3A11E6B19DD2AF20524153\test-automation\Tests\Integration (E2E)\DATA-109\Use Case Subprocesses\CSC\GoToTrack&Trace_StoreKPNReference.tst] absolutePath:[C:\Users\gupta516\lisatmp_9.5.1\lads\B56D5C3EEC3A11E6B19DD2AF20524153\test-automation\Tests\Integration (E2E)\DATA-109\Use Case Subprocesses\CSC\GoToTrack&Trace_StoreKPNReference.tst] canonicalPath:[C:\Users\gupta516\lisatmp_9.5.1\lads\B56D5C3EEC3A11E6B19DD2AF20524153\test-automation\Tests\Integration (E2E)\DATA-109\Use Case Subprocesses\CSC\GoToTrack&Trace_StoreKPNReference.tst]
    at com.itko.util.StreamHelp.fileOpenerWithInfo(StreamHelp.java:775)
    at com.itko.util.StreamHelp.fileOpener(StreamHelp.java:670)
    at com.itko.util.XMLUtils.openXMLDoc(XMLUtils.java:589)
    at com.itko.lisa.LisaDocument.<init>(LisaDocument.java:56)
    at com.itko.lisa.test.TestCaseDocument.<init>(TestCaseDocument.java:37)
    at com.itko.lisa.test.TestCase.openTestCaseDoc(TestCase.java:1909)
    at com.itko.lisa.utils.ExecSubProcessNode.getSubXML(ExecSubProcessNode.java:577)
    at com.itko.lisa.utils.ExecSubProcessNode.getTestCase(ExecSubProcessNode.java:496)
    at com.itko.lisa.utils.ExecSubProcessNode.doFullExec(ExecSubProcessNode.java:287)
    at com.itko.lisa.utils.ExecSubProcessNode.execute(ExecSubProcessNode.java:268)
    at com.itko.lisa.test.TestNode.executeNode(TestNode.java:981)
    at com.itko.lisa.test.TestCase.execute(TestCase.java:1288)
    at com.itko.lisa.test.TestCase.execute(TestCase.java:1203)
    at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1188)
    at com.itko.lisa.test.TestCase.executeTest(TestCase.java:1129)
    at com.itko.lisa.coordinator.Instance.run(Instance.java:204)
    Caused by: java.io.FileNotFoundException: C:\Users\gupta516\lisatmp_9.5.1\lads\B56D5C3EEC3A11E6B19DD2AF20524153\test-automation\Tests\Integration (E2E)\DATA-109\Use Case Subprocesses\CSC\GoToTrack&Trace_StoreKPNReference.tst (The system cannot find the file specified)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(Unknown Source)
    at java.io.FileInputStream.<init>(Unknown Source)
    at java.io.FileInputStream.<init>(Unknown Source)
    at com.itko.util.StreamHelp.fileOpenerWithInfo(StreamHelp.java:761)
    ... 15 more
    ============================================================================


    at com.itko.lisa.utils.ExecSubProcessNode.getTestCase(ExecSubProcessNode.java:556)
    at com.itko.lisa.utils.ExecSubProcessNode.doFullExec(ExecSubProcessNode.java:287)
    at com.itko.lisa.utils.ExecSubProcessNode.execute(ExecSubProcessNode.java:268)
    at com.itko.lisa.test.TestNode.executeNode(TestNode.java:981)
    at com.itko.lisa.test.TestCase.execute(TestCase.java:1288)
    at com.itko.lisa.test.TestCase.execute(TestCase.java:1203)
    at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1188)
    at com.itko.lisa.test.TestCase.executeTest(TestCase.java:1129)
    at com.itko.lisa.coordinator.Instance.run(Instance.java:204)
    ============================================================================

     

    Thanks

    Sarthak Gupta



  • 2.  Re: Getting Error in calling Subprocess while staging the test case in local

    Broadcom Employee
    Posted Feb 08, 2017 08:51 PM

    Hi Sarthak,

        This error says "Unable to load file". How are you loading/calling this file in your test case?, Are you referring this file with property LISA_PROJ_ROOT property?, if that is the case, when you stage test case, LISA_PROJ_ROOT refers to the lads folder during runtime.

     

    java.io.FileNotFoundException: Unable to load file: name=C:/Users/gupta516/lisatmp_9.5.1/lads/B56D5C3EEC3A11E6B19DD2AF20524153/test-automation/Tests/Integration (E2E)/DATA-109/Use Case Subprocesses/CSC/GoToTrack&Trace_StoreKPNReference.tst

     

    Thanks

    Srikanth



  • 3.  Re: Getting Error in calling Subprocess while staging the test case in local

    Posted Feb 09, 2017 12:16 AM

    I have given {{LISA_RELATIVE_PROJ_ROOT}} for subprocess path and it works fine.

    Please check what is the path you have provided to call subprocess from the test case.



  • 4.  Re: Getting Error in calling Subprocess while staging the test case in local

    Posted Feb 09, 2017 03:34 AM

    Hi Srikanth/Monika,

     

    I am giving the below path:

    {{LISA_RELATIVE_PROJ_ROOT}}/Tests/Integration (E2E)/DATA-109/Use Case Subprocesses/CSC/GoToTrack&Trace_StoreKPNReference.tst

     

    But still I am getting error only during staging the test case.Not sure what could be issue.

    Also as i have mentioned the test case is working fine in ITR Mode.

     

    Thanks

    Sarthak Gupta

     



  • 5.  Re: Getting Error in calling Subprocess while staging the test case in local

    Posted Feb 09, 2017 09:35 AM

    There are multiple possibilities. 

    Do you have write access to C:\Users\gupta516\lisatmp_9.5.1?

    Can you try running a test case without subprocess but with an some csv or excel as dataset? See if it run successfully.

    While staging locally, please check in C:\Users\gupta516\lisatmp_9.5.1\lads if it is creating a directory for the execution in "lads" directory. and if it is loading your subprocess in the directory path provided. 

     

    Please share outcomes.

     

    Thanks,

    Monika



  • 6.  Re: Getting Error in calling Subprocess while staging the test case in local

    Posted Feb 14, 2017 12:46 PM

    Sarthak,

    Can you provide the information that Monika requested in their latest post?

    Regards,

    Reid