Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error import POSTMAN in KarateUI #425

Closed
Spiderbezno opened this issue Jun 19, 2018 · 12 comments
Closed

error import POSTMAN in KarateUI #425

Spiderbezno opened this issue Jun 19, 2018 · 12 comments
Assignees

Comments

@Spiderbezno
Copy link

Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
at com.intuit.karate.convert.ConvertUtils.readPostmanJson(ConvertUtils.java:64)
at com.intuit.karate.ui.App.lambda$initImportOpenAction$2(App.java:113)
at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
at javafx.event.Event.fireEvent(Event.java:198)
at javafx.scene.control.MenuItem.fire(MenuItem.java:462)
at com.sun.javafx.scene.control.skin.ContextMenuContent$MenuItemContainer.doSelect(ContextMenuContent.java:1405)
at com.sun.javafx.scene.control.skin.ContextMenuContent$MenuItemContainer.lambda$createChildren$343(ContextMenuContent.java:1358)
at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)
at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
at javafx.event.Event.fireEvent(Event.java:198)
at javafx.scene.Scene$MouseHandler.process(Scene.java:3757)
at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485)
at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762)
at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:380)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:294)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$354(GlassViewEventHandler.java:416)
at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:415)
at com.sun.glass.ui.View.handleMouseEvent(View.java:555)
at com.sun.glass.ui.View.notifyMouse(View.java:937)

@ptrthomas
Copy link
Member

I'm closing this because there is absolutely no way to replicate. try again and submit a sample collection / JSON please.

@Spiderbezno
Copy link
Author

I think that the problem is with there are a list of itms exemple:
{
"info": {
"_postman_id": "400cafda-f180-ecda-efcd-601af2043581",
"name": "DetailComunication",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [{
"name": "MyPhone",
"item": [{
"name": "https://test1",
"request": {....}
]
},
{
"name": "Television",
"description": null,
"item": [
{
"name": "GetTelevisionChannelsWithCurrentProgram",

@ptrthomas
Copy link
Member

@Spiderbezno thanks. re-opening. this is not a high priority for me right now, because I don't think many use this feature (yet). if anyone watching this project can contribute - that would be great. this ticket is tagged as "help wanted"

@ptrthomas ptrthomas reopened this Jun 19, 2018
@vmchukky
Copy link
Contributor

@Spiderbezno @ptrthomas do you happen to have a sample postman collection to reproduce the issue? if so can you please attach it here so that I can take a stab at hopefully fixing this issue.

@vmchukky
Copy link
Contributor

@ptrthomas thanks for the sample collection. Please check #473 at your convenience.

@ptrthomas
Copy link
Member

@vmchukky you da man ! will merge today or tomorrow. any other ideas you have on improving the Karate UI would be great to hear.

@Spiderbezno
Copy link
Author

Nice, I will try when it would be possible

@ptrthomas
Copy link
Member

@Spiderbezno if you are comfortable cloning and building the project, you can try it now. else wait for the next patch release. let me know if you need instructions.

@ptrthomas
Copy link
Member

@Spiderbezno oh ok, yes - deleted.

@karatelabs karatelabs deleted a comment from Spiderbezno Jul 26, 2018
@ptrthomas ptrthomas self-assigned this Jul 29, 2018
@ptrthomas ptrthomas added this to the 0.9.0 milestone Jul 29, 2018
@vmchukky
Copy link
Contributor

@ptrthomas thanks for taking the fix. Regarding enhancements to karate-ui, can't think of any (may be support for graphql import, need to spend some time myself on graphql before I can propose any enhancement).

I would be happy to work on any issue with help wanted label (the only pending issue with that label appears to be a non issue: #396 (comment)), let me know if you have any such items in the backlog.

@ptrthomas
Copy link
Member

@vmchukky here's the top of the laundry list for the UI ! there's more - but that can wait till after the engine re-write:

  • Should be able to edit and save an existing test
  • Should be able to create a test from scratch. this means options to add / remove test steps (rows) should be added to the UI
  • Currently the threading model needs work, the status of step execution reflects only at the end of ALL steps. needs to be fixed
  • right now the result of the Postman import conversion is saved to the file system. the user should be able to preview the result of the conversion and then choose where it needs to be saved

@ptrthomas
Copy link
Member

0.9.0 released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants