Comments (2)
I notice there is an inconsistency in how resourceRoot is handled between TestEngine and ReadyAPI for the above patch I proposed. Since I copied that handling from the non-composite project code, the issue presumably exists there as well.
Given a project with its root settings file at /path/to/readyapi/project/settings.xml
, ReadyAPI defaults resourceRoot to /path/to/readyapi
but path.dirname(pathname)
in the TestEngine CLI just resolves to the current working directory, wherever that is (since pathname is just ".", not an absolute path). Assuming you run testengine-cli in the same folder as your settings.xml file, it would effectively be /path/to/readyapi/project/
. This means that e.g. file paths in a Data Source step will point to two different locations depending on whether or not you run the project with TestEngine CLI or with ReadyAPI.
I'm changing the fork we use to let resourceRoot = path.dirname(path.resolve(pathname));
.
from testengine-cli.
I've abandoned trying to get a fork of testengine-cli to work, and am instead using an external script to create a zip file and pass that to testengine-cli. Took some trial and error to figure out the right structure for the zip since it is undocumented, but for anybody else facing this: Data Source files need to be co-located with the root settings.xml file, regardless of the path used for them in <file>
property.
from testengine-cli.
Related Issues (11)
- CVE-2020-11023 (Medium) detected in jquery-3.2.1.min.js HOT 1
- CVE-2020-11022 (Medium) detected in jquery-3.2.1.min.js HOT 1
- CVE-2019-11358 (Medium) detected in jquery-3.2.1.min.js HOT 1
- CVE-2021-32640 (Medium) detected in ws-6.2.1.tgz - autoclosed HOT 1
- License Policy Violation detected in jszip-3.2.2.tgz (Multiple Licenses)
- CVE-2021-23413 (High) detected in jszip-3.2.2.tgz - autoclosed HOT 1
- Dependency Dashboard
- CVE-2021-43138 (High) detected in async-2.6.3.tgz
- CVE-2022-3517 (High) detected in minimatch-3.0.4.tgz
- Support sending a properties.json file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from testengine-cli.