A simple script to upload .feature
files to Xray.
To install the package, run:
npm install <package-name>
Usage
Create an authentication token using your Xray API credentials (Client ID and Client Secret).
Place your .feature files in a directory.
Run the upload script:
node uploadFeatureFiles.js <folderPath> <projectKey> <clientId> <clientSecret>
Parameters:
folderPath: Path to the folder containing .feature files.
projectKey: The project key in Xray (e.g., "XRAY").
clientId: Your Xray Client ID.
clientSecret: Your Xray Client Secret.
Example:
node uploadFeatureFiles.js ./features MYPROJECT my-client-id my-client-secret