如何从Selenium IDE生成Java源代码(IDE代码在HTML扩展中) [英] How to generate Java source code from Selenium IDE (IDE code is in HTML extension)

查看:579
本文介绍了如何从Selenium IDE生成Java源代码(IDE代码在HTML扩展中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Selenium IDE(一个Firefox插件)进行测试。当我开始录制内容时,我无法看到java代码。我一直看到的是HTML。知道什么是获取java源代码的最佳方法。请任何人都可以提供帮助。

I am using Selenium IDE (a Firefox plugin) for doing testing. I am unable to see java code when I start recording something. What I see always is HTML. Any idea what can be the best way to get the java source code. Please any one can help on this.

非常感谢。

推荐答案

以下是步骤:


  1. 选项 - >格式 - >选择您选择的格式例如。 junit / testng / isfw

  2. Go到来源标签

  1. Options->Format -> select format of your choice eg. junit/testng/isfw
  2. Go to Source tab.

要以特定格式导出测试用例,请使用

To export test case in specific format use

File->Export Test Case As -> select format

Selenium IDE的一个有用功能是,它提供了设置剪贴板格式的选项,以便您可以复制命令表格视图并粘贴您选择的语言格式。

One of the useful feature of Selenium IDE is, it provide option to set clipboard format so that you can copy commands form table view and paste in format of your choice of language.

Options->Clipboard Format -> set format

这是 selenium IDE文档

这篇关于如何从Selenium IDE生成Java源代码(IDE代码在HTML扩展中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆