Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

1 like 0 dislike
3.1k views
by The go-to Tester (262 points)
edited by
While executing api automation, during connection i am getting below exception. at point URL url = new URL(apiurl);

java.net.MalformedURLException: no protocol: nullnull

at java.net.URL.<init>(URL.java:585)

at java.net.URL.<init>(URL.java:482)

at java.net.URL.<init>(URL.java:431)

1 Answer

0 like 0 dislike
by The go-to Tester (181 points)
It looks like you have not started your URL with http:// or https:// or your protocol part is misspelled. Can you post your URL in the comment?

 

Hope that helps.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...