katalon Studio的小记
Katalon Studio的主要document:
https://docs.katalon.com/display/KD/Getting+Started
1.通过网址:https://www.katalon.com/resources-center/tutorials/ 的Download下载Katalon studio。
2.下载之后直接解压,进入主目录,点击katalon.exe运行。
3.运行katalon.exe之后进入工具的主页面,创建一个新的project。
4.开始测试,在Test Cases中创建一个新的Folder,再在Folder中创建一个新的Test Case。
创建完一个Test Case之后,开始对项目的第一个part进行测试。点击Record Web,记录web测试过程。
注:官网上也有说明,如果需要对测试工程进行webUI测试,需要保证浏览器有达到相应的版本,下图是我截图官网的说明:
其他的说明官网全部都有,我就不对此进行说明,直接将官网上的说明摘抄过来(其实就是上面的创建工程、创建test case的说明):
Create a Project
Enter the name of your new project and the location to store the project data on your machine. Click OK.
A new project will be generated at specified location.
- Create your first Test Case
- Select option to create New Test Case from the main Toolbar.
- Provide the name for your test case then click OK.
- A new test case will be created accordingly. The test case editor is also displayed for editing.
- You can compose the test case by recording, scripting or manually entering test steps. For now, let’s quickly generate the test script using Record feature. Click on the Record icon from the main Toolbar.
-
Click Record to launch the browser. During recording, actions performed on the browser will be captured and be generated into test steps.
Note: You can specify the target browser to be launched by selecting from the Record dropdownlist.
- Let’s create a simple script by going to Google Search and lookup for some keywords as illustrated on the screen above. Click OK of Record dialog when you finish recording.
- You are prompted to confirm saving all captured objects to Katalon Studio. Click OK.
- Captured actions and objects are generated in Katalon Studio.
- Now you can click on Run command from the main Toolbar to execute the script.
Note: You can specify the target browser to run the script by selecting it in the Run dropdown list.
下面就是摘自官网的创建一个简单的test case,使用record and play的方式:
Creating test case using Record and Playback
Follow these basic steps to get familiar with the Record & Playback features:
Click on the New Test Case button on the main toolbar. Provide a name for your test case and click OK. An empty test case will be created.
Click on Record from the main toolbar.
The Record dialog is displayed.
Click on the Record button to start recording test case.
Execute all your test steps on the browser. All of your actions performed on the browser will be recorded by Katalon Studio. The recorded steps and related data are shown below for the actions of going to Google and searching two keywords on the browser.
You can Stop or Pause recording if needed. When you are done with recording, click OK to save recorded actions into Katalon Studio.
You will be prompted to save captured objects into Object Repository of Katalon Studio. Click OK to continue.
Recorded objects and actions are saved into the test case as shown below.
Click on the Run button on the main Toolbar to execute the script.
You can specify the target browser to run by selecting it from the
dropdown list.
Note: The steps above create and run a simple test case.
除此之外还有其他的方式可以参看官网https://www.katalon.com/videos/