Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I test a new app that has not been published against the shipping api?

Tags:

shopify

I have been given access to the new shipping api, when creating an app in partner section and subsequent editing of it details I can set it as a shipping app.

I can then add a shipping rate provider in the test shop (same partner account) but can only see USPS, Canada post, Fedex etc..and can not see the app. I imagine this is because the test app has not been published. But I do not want to publish the test app, and a requirement to publish an app before it can be added as a shipping provider would sort of hinder developement and testing ;-)

I have tried visiting http://your-store.myshopify.com/admin/api/auth?api_key=YOUR_API_KEY but I can't see how that will add my test app as a shipping rate provider in the shipping preferences of the test app.

In fact I gave up on using http://your-store.myshopify.com/admin/api/auth?api_key=YOUR_API_KEY and moved over to user Oauth2 (I couldn't seem to get legacy auth examples working.)

I can register the app via OAuth2 however the option for this shipping app does not appear in the "Carrier calculated shipping rates"

Now I am really stumped.

like image 943
Tim Hoffman Avatar asked Jun 10 '12 00:06

Tim Hoffman


People also ask

What tools can you use to test the existing API routes if you don't yet have a front end?

When using Java, REST-Assured is my first choice for API automation. In fact, it's the main tool I use for API testing. REST-Assured is a fluent Java library you can use to test HTTP-based REST services. It's designed with testing in mind, and it integrates with any existing Java-based automation framework.

How do I test a new API?

API testing flow is quite simple with three main steps: Send the request with necessary input data. Get the response having output data. Verify that the response returned as expected in the requirement.

Can we do API testing manually?

API testing is one of the areas where automated testing is highly recommended, particularly in the world of DevOps, agile development, and continuous delivery cycles. You should use manual testing when performing the following tests: Exploratory testing. Usability testing.


1 Answers

  1. Make sure that the app you created has checked the “this is a shipping app” box.
  2. Visit http://YOUR-STORE.myshopify.com/admin/api/auth?api_key=YOUR_API_KEY
  3. Visit https://YOUR-STORE.myshopify.com/admin/shipping and the shipping service your app exposes should be available as a carrier-calculated shipping rate. (Hit that button at the top of the page if you haven’t added any yet.)
like image 157
Edward Ocampo-Gooding Avatar answered Sep 22 '22 16:09

Edward Ocampo-Gooding