on 2020 Aug 19 4:32 PM
Scenario: We’re trying to test our files with the integrated unit testing provided by the WebIDE.
doesFileExist.xsjs: This file is called to check if a file exists (/doesFileExist.xsjs?file=FILENAME.PDF).

doesFileExist.xsjslib: Provides the functionality for doesFileExist.xsjs (library).

doesFileExistTest.xsjslib: Test function for doesFileExist.xsjslib

Question: Unfortunately we don’t know if our approach is correct, nor if it’s best practice. Is it really necessary to create this many files? Are there any improvements we could take?
Many thanks in advance!
Request clarification before answering.
Hi
This is my experience in XSJS.. Keep your filename column in a table and then call the select statement in javascript function to check. so with this less dependency and lines of code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 18 | |
| 7 | |
| 6 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.