tao
New Member
Posts: 6
|
Post by tao on Aug 18, 2015 6:09:40 GMT
In SeleniumPlus (also acronym for SE+), the component should be defined by users in MAP files, otherwise the component in webpage can't be used directly.
Generally, the MAP files are stored in <Project Name>/Maps. The default file AppMap.order is often used to organize all kinds of files. By default, they mainly organize two files: <Project Name>App.map and <Project Name>App_en.map.
In fact, we can create individual MAP file for every test case. For example, if we have two cases: CheckBoxTests.java and EditBoxTests.java, we can create CheckboxTests.map and EditBoxTests.map separately. Then, in order to assign the corresponding map file, we just need to call (in EditBoxTests.java):
String MAP_FILE_CHECKBOX = "CheckboxTests.map"; String MAP_FILE_EDITBOX = "EditBoxTests.map";
String mapID = MAP_FILE_EDITBOX; Misc.SetApplicationMap(mapID);
This snapshot will assign the EditBoxTests.map for EditBoxTests.java.
Then, in the MAP file, you can define the component as safsdev.sourceforge.net/Default.htm states.
|
|