Migrate VansahNode to Vansah API v2 (folderPath, Space Key, Test Plans)#2
Open
ShubhamMour wants to merge 6 commits into
Open
Migrate VansahNode to Vansah API v2 (folderPath, Space Key, Test Plans)#2ShubhamMour wants to merge 6 commits into
ShubhamMour wants to merge 6 commits into
Conversation
- Use API v2 (v1 rejects Vansah Connect tokens). - Folder asset uses folderPath (not identifier) -- fixes errorCode 1306. - Send top-level project.key (Space Key) scoping on every run. - Add Standard/Advanced Test Plan run methods. - Create runs UNTESTED and resolve each step's pre-created log from a cached map (step number -> log id); AddTestLog updates it (or creates a fallback), and RemoveTestLog recreates an UNTESTED placeholder so the cache stays valid. - Add setDebug payload logging (token never printed). - Ship as a class library and drop the old executable sample. Ignore local secrets and the local test harness (.env, .env.example, localtests/).
- Test Plan API now uses setters, matching the Java binding: setStandardTestPlanKey(key), setAdvancedTestPlanKey(key), setTestPlanIteration(int). Run methods become AddTestRunFromStandardTestPlan(testCase) and AddTestRunFromAdvancedTestPlan(testPlanAssetType, testCase). - Iteration defaults to 1, valid range 1-5 (out-of-range warns and keeps 1), and applies only to Test Plan runs. The API requires iteration on planned runs, so it is always sent (defaulting to 1). - Rewrite README to mirror the Java binding's structure (Features, Prerequisite, Configuration, Dependencies, Usage examples, Methods Overview, Setter Methods) with C#-accurate signatures and the new setter-based Test Plan usage. - Keep any local test harness out of the library build.
- Test Plan API now uses setters, matching the Java binding: setStandardTestPlanKey(key), setAdvancedTestPlanKey(key), setTestPlanIteration(int). Run methods become AddTestRunFromStandardTestPlan(testCase) and AddTestRunFromAdvancedTestPlan(testPlanAssetType, testCase). - Iteration defaults to 1, valid range 1-5 (out-of-range warns and keeps 1), and applies only to Test Plan runs. The API requires iteration on planned runs, so it is always sent (defaulting to 1). - Rewrite README to mirror the Java binding's structure (Features, Prerequisite, Configuration, Dependencies, Usage examples, Methods Overview, Setter Methods) with C#-accurate signatures and the new setter-based Test Plan usage. - Keep any local test harness out of the library build.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
/api/v2/*. Connect tokens work end-to-end.folderPath(not the oldidentifier).project.keyis now sent on every request (required for Connect tokens; fixes errorCode 1306).setStandardTestPlanKey,setAdvancedTestPlanKey,setTestPlanIteration) +AddTestRunFromStandardTestPlan/AddTestRunFromAdvancedTestPlan. Iteration defaults to 1testScriptsendpoint declaration .license.md.test/contains a.env-driven end-to-end harness (VansahNodeFullTests.cs) that exercises every function;.env.exampledocuments the required keys. Real.envand build output stay gitignored.