dtkago3208 2011-09-07 22:37
浏览 29
已采纳

寻找建议 - 使用Ruby / Rubygems测试PHP API调用

Im looking to be pointed in the right direction.

My site that i'm testign this on has a SHOP API which uses PHP calls. I have a bunch of item IDs that I want to test, about 100. Doign this manually is a bit tedious.

I'm looking for a way to use Ruby to:

  • Read a row within an excel file for an itemID.
  • Insert that into a URL to make the PHP API call for this transaction.
  • Get the results which are returned by xml; get the sucess string and insert pass/fail into the Excel.
  • Repeat with next item on the Excel sheet.

Again, I'm not looking for example strings at this moment. I'm just looking to be pointed towards the right rubygems to use for this so that I can figure it out myself.

  • 写回答

1条回答 默认 最新

  • duanjingsen7904 2011-09-07 23:14
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!