Karate: [ui] Karate UI re-write

Created on 21 Oct 2018  路  7Comments  路  Source: intuit/karate

cc @RavinderSinghMaan @vmchukky

Decided to re-write the Karate UI - but we can quickly re-use all the stuff we have learnt building the old one. The main motivation is because the model objects are now clean and cucumber-free and especially since we a great abstraction of ScenarioExecutionUnit and ScenarioResult + StepResult

also see the design below - the big change is a greatly simplified user-experience where you can very easily select a single scenario to run. or flip between scenarios to look at data. the vars table is per scenario - which is the right association. some niceties like the icon, which even shows in the dock for mac

I can use some help to add in all the old stuff and re-build. I can take care of the experience when a feature is call-ed this will be tricky - but I think I have an approach in mind

I think it is time we got the UI out of beta - and I am anticipating this will be a huge benefit for UI automation - and will allow teams to FIX the flaky tests fast enough.

image

enhancement fixed

All 7 comments

@ptrthomas
just curious.
So through interface, how do you deal with karate.config? Those right side of Variable type map view will load and persist karate.config values? is karate.config per feature or something shared between features? or karate ui have different notion for variable and map?

@jlee70 only load for now. maybe edit later - karate-config.js is re-processed before the start of any Scenario. if it returns a map, every key-value will become a variable.

I tried out latest commit. UI needs some love (noticed some repaint issues..) but basic functionality works.

cc @babusekaran @vmchukky

image

finally did it ! when a feature call happens, you can opt to open a new instance of the UI and it seems to work well. when you hit the close [X] button, the call result is returned to the caller as well - and it all seems to work fine.

introduced a split button (see image) which seems to be a cleaner way to stuff more step-actions and can hold possibly add / remove step above / below etc. and the "run upto" action - which you can see above is TODO

@ptrthomas Opened the call-nested.feature in karate-demo and wow it is more interactive now. and the same goes with calling feature with an array of JSON 馃憦 馃憦 馃憦.

@babusekaran I actually didn't even try an array loop - but it should work - thanks for confirming, and also all the PR-s !

0.9.0 released

Was this page helpful?
0 / 5 - 0 ratings