Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Fitnesse uses Series 7

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

The rest are relatively simple and put together.

Import Table-- Import Table:

The introduction of package path is consistent with the function of import in java language.

Comment Table-- comment sheet:

Add the comment mark comment to indicate that this table does not need to be executed

Library Table-- library table:

Indicates that when a method is not found in the current fixture, look for it in the class specified by Library Table and execute it

Define Table Type-- defines the table type:

The use is simple, and after adding the Define Table Type table, you can omit the prefix string of the table type from the table. The so-called "easier to read" is actually a bit of a chicken rib.

Scenario Table-- scenario table:

I'm sorry I wasted my time without saying a few more words. Due to careless reading and a little trick in the manual, I made a lot of effort to study the implementation process of Scenario Table. Just as I finished downloading the source code to search for the execution method using the soil method of finding strings, I suddenly saw this! * > No Peeking. So I woke up.

The definition is clear-ScenarioTable is a table that can be called by other tables, including decision tables and script tables. But the examples in the manual look a little dizzy. In fact, it can be understood this way: think of Scenario Table as another kind of script table. It contains a set of steps. For multiple test data, when each set of data needs to do these steps, you can use ScenarioTable to "modularize" this set of steps. Pass the data as parameters during execution. Interpreting it in a programming language is similar to putting a script table in a loop.

The name of the scenario table does not correspond to any code and is only used by other tables. The headers or methods of other tables use this name. So where is the name of the startup "class"? This requires adding an additional script table to the page that uses ScenarioTable as the "startup table". See the! * * > No Peeking section in the manual and expand it and you'll see it. (it was abhorrent to hide it and explain it at the end of the article.)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report