thunder-client-support icon indicating copy to clipboard operation
thunder-client-support copied to clipboard

Test via terminal or Github Actions

Open chientrm opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

Test via terminal or Github Actions

Describe alternatives you've considered

Implementation:

chientrm avatar Sep 10 '22 06:09 chientrm

Thanks @chientrm for the feedback, will add to roadmap.

rangav avatar Sep 11 '22 02:09 rangav

How you like the commands to look like in terminal? can you provide an example what your are thinking?

and also What kind of response you like to see there?

rangav avatar Oct 17 '22 16:10 rangav

AFAIK, a command in this format is convenient.

npx thunderclient

The output formats list should include:

  • Terminal output
  • XML file
  • CSV file

Return non-zero exit code when one of the test failed.

chientrm avatar Oct 27 '22 10:10 chientrm

XML needs be in standard JUnit XML format !

PavanMudigondaTR avatar Nov 14 '22 18:11 PavanMudigondaTR

@PavanMudigondaTR thanks for feedback, Will add to roadmap.

rangav avatar Nov 14 '22 20:11 rangav

Related to #98

rangav avatar Nov 18 '22 04:11 rangav

Hi All, development is finished, We are planning to launch Thunder Client CLI next week, which will have lot of new innovative features, stay tuned…

rangav avatar Feb 02 '23 07:02 rangav

Beginning or ending next week? I can't wait any longer! :)

wavveen avatar Feb 03 '23 10:02 wavveen

@wavveen early next week.

rangav avatar Feb 03 '23 11:02 rangav

This feature is now implemented and published to marketplace, please update to v2.4.0

Thunder Client CLI

  • https://github.com/rangav/thunder-client-support/releases/tag/v2.4.0

Documentation

  • For documentation read our blog post on medium.com

Product Hunt

  • We are launching today on Product Hunt, Please upvote and let us know any feedback.

rangav avatar Feb 08 '23 09:02 rangav

Hi All,

Hope you all used CLI tool, Please let me know your feedback about what you like and any improvements required?

rangav avatar Feb 15 '23 17:02 rangav

Hi, yeah really using the CLI tool here! We did a POC to check if TC is going to be the tool to setup our auto API tests, by executing requests with the CLI in an Azure DevOps pipeline.

We've got multiple environments like dev, tst, acc, prd. Probably going to run the automated API tests on both tst and acc. One improvement would be that we could pass in the environment (id/name) as an argument: tc --col 'colNameOrId -env 'envId' For now I'm manipulating the thunderCollection.json and setting the envId right before execution.

Another improvement, maybe not related to the CLI tool completely, is that we would be able to run scenario's by picking/clicking together some already existing request. At the moment you would need to create a new collection and duplicate requests into this new collection. Which means a lot of maintenance because al all the duplicated requests.

And another improvement, not related to CLI completely, would be the ability to store requests per file and not all in one big thunderclient.json. Would make things much clearer when merging/working with GIT.

wavveen avatar Feb 16 '23 10:02 wavveen

Thanks @wavveen for the feedback.

  1. Will provide option to input environment via --env 'name'
  2. Running selected requests could be tricky to implement. But you can save them to folder and you can run requests in folder instead of collection. Will research if there is any better way to do this.
  3. Some users requested separate each collection into separate file. There are some advantages with this like git merges. The only disadvantage is the extension load time will increase linearly with number of files to read. Will research about this issue further.

rangav avatar Feb 16 '23 11:02 rangav

Thanks! One other thing: the ability to run Pre Filters before Pre Requests. I would like to be able to run some code, and depending on the outcome run a Pre Request.

wavveen avatar Feb 16 '23 12:02 wavveen

Thanks! One other thing: the ability to run Pre Filters before Pre Requests. I would like to be able to run some code, and depending on the outcome run a Pre Request.

Can you create a new feature request for this?

rangav avatar Feb 16 '23 12:02 rangav

done #1018

wavveen avatar Feb 16 '23 12:02 wavveen

@wavveen Provide env option to run collection or request using --env 'nameOrId' is implemented.

  • please update extension to v2.4.2
  • update CLI to v1.0.6

See all features released https://github.com/rangav/thunder-client-support/releases/tag/v2.4.2

Please let me know your feedback.

rangav avatar Feb 17 '23 17:02 rangav

@wavveen I think we can run selected requests in cli using below format

tc --reqlist id1,id2,id3

do you want to run selected requests from one collection or multiple collections?

let me know your feedback? I can implement it

rangav avatar Feb 18 '23 11:02 rangav

@wavveen Provide env while running collection or request using --env 'nameOrId' is implemented.

  • please update extension to v2.4.2
  • update CLI to v1.0.6

See all features released https://github.com/rangav/thunder-client-support/releases/tag/v2.4.2

Please let me know your feedback.

Going to test this on Monday, thanks!

wavveen avatar Feb 18 '23 12:02 wavveen

@wavveen I think we can run selected requests in cli using below format

tc --reqlist id1,id2,id3

do you want to run selected requests from one collection or multiple collections?

let me know your feedback? I can implement it

Yeah that would suffice for running "scenario's"! I need to be able to select from multiple collections...

I was just wondering if reporting will work? As earlier on you told you need to run a collection to get reporting...

Thanks!

wavveen avatar Feb 18 '23 12:02 wavveen

Not sure about reporting will try out and get back to you.

rangav avatar Feb 18 '23 12:02 rangav

@wavveen here is update for running selected requests. It's implemented now.

How it works

  • tc --reqlist id1,id2 will run requests with id1 and id2. The request should be from same collection.
  • The reports will work fine.
  • if you like to run requests from multiple collections, then you need run multiple commands for each collection.
  • Alternatively you can also use pre-request from a different collection.

Please update CLI to v1.0.7 and let me know your feedback.

rangav avatar Feb 19 '23 21:02 rangav

Hi, Now you can run Multiple or All Collections from CLI in v1.1.0

  • Run All Collections using tc --col all
  • Run Multiple Collections tc --col colIdOrName1,colIdOrName2
  • Update CLI to version - v1.1.0

Release Notes: https://github.com/rangav/thunder-client-support/releases/tag/v2.5.0

Please let me know your feedback.

rangav avatar Mar 01 '23 11:03 rangav