File Watcher assertion is throwing Stream Closed error in Devtest
search cancel

File Watcher assertion is throwing Stream Closed error in Devtest

book

Article ID: 241938

calendar_today

Updated On:

Products

CA Application Test

Issue/Introduction

We are trying to run existing LISA 7 test cases in DevTest 10. But while running the test case in workstation, we are getting below exception for File Watcher assertion.

============================================================================
| An unexpected exception occurred while trying to process file: C:/Devtest/tests/../reports/<test_name>.txt
============================================================================
| Step:        Do-Nothing Step
----------------------------------------------------------------------------
| Message:     Stream Closed
----------------------------------------------------------------------------
| Trapped Exception: Stream Closed
| Trapped Message:   java.io.IOException: Stream Closed
----------------------------------------------------------------------------
STACK TRACE
java.io.IOException: Stream Closed
 at java.io.RandomAccessFile.length(Native Method)
 at com.itko.lisa.utils.FileWatcherAssertion.evaluateFile(FileWatcherAssertion.java:353)
 at com.itko.lisa.utils.FileWatcherAssertion.evaluate(FileWatcherAssertion.java:167)
 at com.itko.lisa.test.Assertion.execute(Assertion.java:297)
 at com.itko.lisa.test.TestNode.runAssertionsInList(TestNode.java:1185)
 at com.itko.lisa.test.TestNode.runAssertions(TestNode.java:1136)
 at com.itko.lisa.test.TestNode.executeNode(TestNode.java:1026)
 at com.itko.lisa.test.TestCase.execute(TestCase.java:1297)
 at com.itko.lisa.test.TestCase.execute(TestCase.java:1198)
 at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1183)
 at com.itko.lisa.editor.WalkThruPanel.prepAndExecNode(WalkThruPanel.java:1122)
 at com.itko.lisa.editor.WalkThruPanel.access$900(WalkThruPanel.java:72)
 at com.itko.lisa.editor.WalkThruPanel$10.doCallback(WalkThruPanel.java:1021)
 at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:195)
 at java.lang.Thread.run(Thread.java:748)
============================================================================

When we tried to run the same test script in LISA 7 it works fine, there is no exception.

Environment

Release : 10.7.2

Component : DevTest Workstation

Resolution

We identified this as a defect in 10.7 version and engineering team created patch for this issue. Please raise a support ticket and get the patch from the team.