<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Android开发工具,脚本 - BeanShell脚本</title>
    <link>http://www.top1234.top/forum.php?mod=forumdisplay&amp;fid=2</link>
    <description>Latest 20 threads of BeanShell脚本</description>
    <copyright>Copyright(C) Android开发工具,脚本</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Wed, 15 Apr 2026 20:21:54 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://www.top1234.top/static/image/common/logo_88_31.gif</url>
      <title>Android开发工具,脚本</title>
      <link>http://www.top1234.top/</link>
    </image>
    <item>
      <title>BeanShell 用法总结</title>
      <link>http://www.top1234.top/forum.php?mod=viewthread&amp;tid=28</link>
      <description><![CDATA[一、什么是Bean Shell
[*]BeanShell是一种完全符合Java语法规范的脚本语言,并且又拥有自己的一些语法和方法;
[*]BeanShell是一种松散类型的脚本语言(这点和JS类似);
[*]BeanShell是用Java写成的,一个小型的、免费的、可以下载的、嵌入式的Java源代码解释器,具有对象脚本 ...]]></description>
      <category>BeanShell脚本</category>
      <author>admin</author>
      <pubDate>Sun, 29 Dec 2024 14:14:53 +0000</pubDate>
    </item>
    <item>
      <title>BeanShell 用法汇总</title>
      <link>http://www.top1234.top/forum.php?mod=viewthread&amp;tid=20</link>
      <description><![CDATA[一、什么是Bean Shell
[*]BeanShell是一种完全符合Java语法规范的脚本语言,并且又拥有自己的一些语法和方法;
[*]BeanShell是一种松散类型的脚本语言(这点和JS类似);
[*]BeanShell是用Java写成的,一个小型的、免费的、可以下载的、嵌入式的Java源代码解释器,具有对象脚本 ...]]></description>
      <category>BeanShell脚本</category>
      <author>admin</author>
      <pubDate>Sun, 01 Sep 2024 09:05:23 +0000</pubDate>
    </item>
    <item>
      <title>BeanShell入门</title>
      <link>http://www.top1234.top/forum.php?mod=viewthread&amp;tid=19</link>
      <description><![CDATA[BeanShell 是一个小型，免费的，嵌入式的 Java 源代码解释器，可以执行标准 Java 语句和表达式。它不需要 Java 编译器或类管理器。

BeanShell 可以用于多种场景，例如快速测试和调试 Java 代码，快速原型开发，执行简单的脚本任务等。

BeanShell 支持动态地执行 Java  ...]]></description>
      <category>BeanShell脚本</category>
      <author>admin</author>
      <pubDate>Sun, 01 Sep 2024 09:04:01 +0000</pubDate>
    </item>
    <item>
      <title>Beanshell断言</title>
      <link>http://www.top1234.top/forum.php?mod=viewthread&amp;tid=13</link>
      <description><![CDATA[是一种在性能测试中使用的断言工具。它是基于Java语言的脚本语言，可以在性能测试过程中对响应数据进行验证和断言。Beanshell断言可以通过编写脚本来定义验证规则，以判断响应数据是否符合预期。Beanshell断言的分类：
[*]响应断言：用于验证服务器响应的内容是否符合预 ...]]></description>
      <category>BeanShell脚本</category>
      <author>admin</author>
      <pubDate>Wed, 31 Jul 2024 02:32:37 +0000</pubDate>
    </item>
    <item>
      <title>BeanShell的断言使用说明</title>
      <link>http://www.top1234.top/forum.php?mod=viewthread&amp;tid=12</link>
      <description><![CDATA[// 假设我们要检查的响应变量名为\&quot;response\&quot;
String expected = \&quot;Hello, World!\&quot;; // 这是我们期望在响应中看到的字符串
String actual = vars.get(\&quot;response\&quot;); // 从JMeter变量中获取响应

// 使用BeanShell的内置方法contains来检查字符串
if (actual.contains(expec ...]]></description>
      <category>BeanShell脚本</category>
      <author>admin</author>
      <pubDate>Wed, 31 Jul 2024 02:32:07 +0000</pubDate>
    </item>
    <item>
      <title>BeanShell常用变量</title>
      <link>http://www.top1234.top/forum.php?mod=viewthread&amp;tid=3</link>
      <description><![CDATA[1.变量--日期
使用场景：当入参日期是变量，取当前日期

使用如下：

（1）当前日期
import java.text.SimpleDateFormat;
import java.util.Date;

// 创建 SimpleDateFormat 对象并指定日期格式
SimpleDateFormat dateFormat = new SimpleDateFormat(\&quot;yyyy-MM-dd\&quot;);

/ ...]]></description>
      <category>BeanShell脚本</category>
      <author>admin</author>
      <pubDate>Thu, 04 Jul 2024 09:16:07 +0000</pubDate>
    </item>
    <item>
      <title>BeanShell语法</title>
      <link>http://www.top1234.top/forum.php?mod=viewthread&amp;tid=2</link>
      <description><![CDATA[一 基本语法
1.1操作变量：
通过使用Bean shell内置对象vars可以对变量进行存取操作

　a) vars.get(\&quot;name\&quot;)：从jmeter中获得变量值

　b) vars.put(\&quot;key\&quot;，\&quot;value\&quot;)：数据存到jmeter变量中

1.2操作属性：
通过使用Bean shell内置对象props 可以对属性进行存取操作

　 ...]]></description>
      <category>BeanShell脚本</category>
      <author>admin</author>
      <pubDate>Thu, 04 Jul 2024 09:15:05 +0000</pubDate>
    </item>
    <item>
      <title>BeanShell入门</title>
      <link>http://www.top1234.top/forum.php?mod=viewthread&amp;tid=1</link>
      <description><![CDATA[http://www.BeanShell.org/


Bean Shell：
BeanShell是用Java开发的嵌入式的Java源代码解释器,一个非常简单的java虚拟机，它的jar文件大小为250k。

BeanShell是一个Java程序，它读取java源码，然后解析成指令，并执行。所以BeanShell执行的程序并没有独立的虚拟机。

 ...]]></description>
      <category>BeanShell脚本</category>
      <author>admin</author>
      <pubDate>Thu, 04 Jul 2024 09:13:57 +0000</pubDate>
    </item>
  </channel>
</rss>