Experimental mountebank UI

421 views
Skip to first unread message

Don Henton

unread,
Nov 23, 2015, 8:59:25 PM11/23/15
to mountebank-discuss
I'm working on a UI for composing mountebank json that would be used for the /imposters API to create test doubles. First cut is located at:


It writes a JSON datastructure that is translated to the appropriate format for posting to mb, and will do the posting for you, if mb is in allowCORS mode.

If you use it and have any comments, post them here, any feedback greatly appreciated!!!!!

Brandon Byars

unread,
Nov 24, 2015, 5:40:13 PM11/24/15
to Don Henton, mountebank-discuss
Wow - this is impressive!  If you're interested in ripping out the code at http://www.mbtest.org/imposters and turning it into your SPA, let me know; this is definitely something I've wanted for a while.  I've just lacked the time (and probably the skill ;>).

If not, any objections to me linking to it from the next release of the app?
-Brandon

--
You received this message because you are subscribed to the Google Groups "mountebank-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mountebank-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

rajashek...@gmail.com

unread,
Mar 17, 2017, 1:44:59 PM3/17/17
to mountebank-discuss
Don, Could you share installation instructions for mountebank-UI. It would help a lot to setup mountebank-UI in my local and prepare test stubs for mountbank.

Thanks,
Raj

Don Henton

unread,
Mar 18, 2017, 12:32:13 PM3/18/17
to mountebank-discuss
Sure:


There is also a youtube presentation: 

Using Mountebank and CORS: in the source find the cors-explorer folder, with its README


Navigate to http://donhenton.github.io/mountebank-UI/public_html/index.html. This is the actual application, there is no need to install it, as it creates the mountebank configurations for you and keeps its meta data
in local storage.

The help menu option explains a great deal of the application.

The first time you visit the application you are given a blank collection. A collection is a group of Imposters, which have a Response and a Match Criteria you can fill out on the home page.

For an Imposter, you can have multiple responses, and various match criteria.

The collection Maintenance page allows you to create/switch collections and set the port Mountebank
listens to for that collection

The Mountebank JSON page allows you to see the mountebank DSL code, and post it your mountebank server if you have it running locally
(requires being started with --allowCORS)

Import/Export lets you save what you have in local storage for another time.

 

jyotit...@gmail.com

unread,
Mar 26, 2017, 11:27:04 PM3/26/17
to mountebank-discuss
Hi Don,

This UI is not working on chrome. I can see following error:

Cannot read property 'tostring' of undefined @ mountebank-UI.min.js:17

An I missing any JS packaged on my system?

Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages