API testing with Ranorex

Ask general questions here.
User avatar
FelixK98
Posts: 54
Joined: Fri Apr 08, 2016 6:28 am

API testing with Ranorex

Post by FelixK98 » Tue May 03, 2016 7:24 am

Hi everyone,

Can someone provide me with example of API testing with Ranorex.
Link to documentation about testing API using Ranorex will be most appreciated.
I am trying to start some API testing, so I need info in this regard.

Thanks,
Felix.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: API testing with Ranorex

Post by odklizec » Tue May 03, 2016 7:43 am

Hi Felix,

Ranorex is primarily a GUI test automation tool, which means there is no out-of-the-box support for API testing. Thanks to its .NET support, you can force it to do whatever you want. But I'm afraid, I don't remember a discussion or Ranorex blog post regarding the API testing. You will definitely have to write a lot of user code to test the API.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

User avatar
FelixK98
Posts: 54
Joined: Fri Apr 08, 2016 6:28 am

Re: API testing with Ranorex

Post by FelixK98 » Tue May 03, 2016 8:13 am

Hi odklizec,

I want to know how can I start it. What will be the first thing I need to write to be able run API test cases as part of Test Suite.

Thanks,
Felix.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: API testing with Ranorex

Post by odklizec » Tue May 03, 2016 8:19 am

Hi Felix,

I don't really have a clue? It depends of your AUT and the API you need to test. Basically, it should be enough to create a new code module (right click on test case and select "New Code Module" option) and in this module add your API related code. If you need to learn about API testing in general, I would suggest to start with Google search ;)
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

User avatar
FelixK98
Posts: 54
Joined: Fri Apr 08, 2016 6:28 am

Re: API testing with Ranorex

Post by FelixK98 » Wed May 04, 2016 1:32 am

Hi odklizec,

Thanks for reply.
I found topic on forum that could help a bit:
http://www.ranorex.com/forum/restful-we ... t8413.html
We are using REST-like API, so it should give me an idea how to start :D

Thanks,
Felix.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: API testing with Ranorex

Post by odklizec » Wed May 04, 2016 7:23 am

HI Felix,

OK, nice to see you found something related to your problem ;) Good luck then!
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration