350040M 176449-01 BENTLY 输出模块数字
小控制电流用于激励电磁铁,电磁铁将电枢拉向它。电枢与电路的另一端接触,从而接通电路并允许电流流动。当电磁铁停止工作时,附在衔铁上的弹簧将电磁铁拉回,切断电流。由于具有独立控制信号的特点,早期的计算机大量使用继电器来形成逻辑电路,如哈佛马克2号、ARRA、Zuse Z2和Zuse Z3。它们还被广泛用作早期电话系统(如史端乔和纵横制电话交换系统)中复杂交换的逻辑控制。
通过允许更大的电流流动来打开设备继电器是一种电动或机电开关,由电磁铁、衔铁、弹簧和一-组电触点组成。电磁开关由小电流操作,通过释放或缩回衔铁触点来接通或切断大电流,从而切断或接通电路。当受控电路和控制电路之间必须有电气隔离时,或者当多个电路需要由单个信号控制时,继电器是必要的。继电器是一个电磁开关;因此,它的心脏是电磁体,由小电流供电,充当杠杆或开关本身。这使得允许相对小的电流影响和控制大得多的电流成为可能。传感器是敏感的设备,它们只产生少量的电流,但为了让传感器驱动更大的设备,它需要某种东西通过允许更大的电流流动来打开设备。样,传感器可以作为继电器的控制输入,当它被激活时,更大的电流流向设备。例如,可以分配光或光传感器来控制室外的灯,以便当外面变暗时,光传感器激活充当灯开关的继电器。350040M 176449-01 BENTLY 输出模块数字
驱动模块是用来模拟被测试模块的上一级模块,相当于被测模块的主程序。它接收数据,将相关数据传送给被测模块,启用被测模块,并打印出相应的结果。传统的单元测试包括了驱动模块(driver) 和桩模块(stub)。驱动模块的目的很单纯,就是为了访问类库的属性和方法,来检测类库的功能是否正确;驱动模块是用来模拟被测试模块的上一级模块,相当于被测模块的主程序。它接收数据,将相关数据传送给被测模块,启用被测模块,并打印出相应的结果。如果被测试模块中的函数是提供给其他函数调用的,在设计测试用例时就应该设计驱动模块(Driver)。350040M 176449-01 BENTLY 输出模块数字
举例来说:驱动模块(Driver)可以通过模拟一系列用户操作行为,比如选择用户界面上的某一个选项或者按下某个按钮等,自动调用被测试模块中的函数。驱动模块(Driver)设置,使对模块的测试不必与用户界面真正交互。
A small control current is used to excite the electromagnet, which pulls the armature towards it. The armature contacts the other end of the circuit, thus completing the circuit and allowing current to flow. When the electromagnet stops working, the spring attached to the armature pulls the electromagnet back and cuts off the current. Because of its independent control signal, early computers used a lot of relays to form logic circuits, such as Harvard Mark II, ARRA, Zuse Z2 and Zuse Z3. They are also widely used as logical controls for complex switching in early telephone systems, such as Strowger and crossbar telephone switching systems.
350040M 176449-01 BENTLY 输出模块数字
Open the equipment by allowing more current to flow. The relay is an electric or electromechanical switch, which consists of an electromagnet, an armature, a spring and a set of electrical contacts. The electromagnetic switch is operated by a small current, and the large current is switched on or off by releasing or retracting the armature contact, thus switching off or switching on the circuit. Relays are necessary when there must be electrical isolation between the controlled circuit and the control circuit, or when multiple circuits need to be controlled by a single signal. The relay is an electromagnetic switch; Therefore, its heart is an electromagnet, which is powered by a small current and acts as a lever or switch itself. This makes it possible to allow a relatively small current to influence and control a much larger current. Sensors are sensitive devices, they only generate a small amount of current, but in order for the sensor to drive a larger device, it needs something to open the device by allowing a larger current to flow. For example, the sensor can be used as the control input of the relay. When it is activated, more current flows to the equipment. For example, a light or a light sensor can be assigned to control outdoor lights, so that when the outside gets dark, the light sensor activates a relay that acts as a light switch.350040M 176449-01 BENTLY 输出模块数字
The driver module is used to simulate the upper module of the module under test, which is equivalent to the main program of the module under test. It receives data, transmits relevant data to the tested module, enables the tested module, and prints the corresponding results. Traditional unit testing includes driver module and stub module. The purpose of the driver module is very simple, that is, to access the properties and methods of the class library to test whether the function of the class library is correct; The driver module is used to simulate the upper module of the module under test, which is equivalent to the main program of the module under test. It receives data, transmits relevant data to the tested module, enables the tested module, and prints the corresponding results. If the function in the tested module is provided for other function calls, the Driver module should be designed when designing the test case.350040M 176449-01 BENTLY 输出模块数字
For example, the Driver module can automatically call the functions in the tested module by simulating a series of user actions, such as selecting an option on the user interface or pressing a button. The Driver module is set, so that the test of the module does not have to really interact with the user interface.
Copyright © 2022-2024 厦门雄霸电子商务有限公司 版权所有 备案号:闽ICP备14012685号-33