When Staging Mari file get error: Caused by: java.io.FileNotFoundException: (No such file or directory)

book

Article ID: 193147

calendar_today

Updated On:

Products

CLOUDTEST CA Application Test CA Cloud Test Mobile MOBILECLOUD Service Virtualization

Issue/Introduction

We are in the process of running some load tests for an upgrade project and as part of that we created new .mari files. unlike the old .mari files, the new ones fail to run. Extended log info doesn't give much detail to troubleshoot the issue.

Caused by: java.io.FileNotFoundException: /opt/app/t1xan1c1/lisatmp_10.6.0/lads/B85055CBA66D11EAA8280050568D5FF9/ATT_DL_APP_BE/Data/datasets/SBN/average_load_dmp_removal_Pri_1.csv (No such file or directory)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at java.io.FileInputStream.<init>(FileInputStream.java:93)
    at com.itko.util.StreamHelp.fileOpenerWithInfo(StreamHelp.java:761)
    ... 19 more


Cause

Need to change variable of where input file was being read from when staging.

Environment

Release : 10.6

Component : CA Application Test

Resolution


1. Double-click "Read Rows from a Delimited Data File" on your Do-Nothing Step.

2. For your file location click ...

3. Navigate to where the file is and choose it.

4. The file location should now reflect:

{{LISA_RELATIVE_PROJ_ROOT}}/Data/datasets/SBN/average_load_dmp_removal_pri_1.csv

5. Save test case.

6. Re-Tested and resolved the issue.


Additional Information

Before you had {{LISA_PROJ_ROOT}}, this is the fully qualified path of the project directory.

What you need is {{LISA_RELATIVE_PROJ_ROOT}}, this is the fully qualified path of the project directory of the currently executing test.

 

https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/devops/devtest-solutions/10-6/using/using-application-test/using-devtest-workstation-with-application-test/building-test-cases/properties/common-properties-and-environment-variables.html