Deprecated: define(): Declaration of case-insensitive constants is deprecated in /home3/zeenyxor/public_html/b2evolution1/inc/_core/model/db/_db.class.php on line 49

Deprecated: define(): Declaration of case-insensitive constants is deprecated in /home3/zeenyxor/public_html/b2evolution1/inc/_core/model/db/_db.class.php on line 50

Deprecated: define(): Declaration of case-insensitive constants is deprecated in /home3/zeenyxor/public_html/b2evolution1/inc/_core/model/db/_db.class.php on line 51

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home3/zeenyxor/public_html/b2evolution1/inc/_core/_param.funcs.php on line 2112

Warning: Cannot modify header information - headers already sent by (output started at /home3/zeenyxor/public_html/b2evolution1/inc/_core/model/db/_db.class.php:49) in /home3/zeenyxor/public_html/b2evolution1/inc/_core/_template.funcs.php on line 379

Deprecated: Function create_function() is deprecated in /home3/zeenyxor/public_html/b2evolution1/inc/_core/_url.funcs.php on line 817

Deprecated: Function create_function() is deprecated in /home3/zeenyxor/public_html/b2evolution1/inc/_core/_url.funcs.php on line 818

Warning: Cannot modify header information - headers already sent by (output started at /home3/zeenyxor/public_html/b2evolution1/inc/_core/model/db/_db.class.php:49) in /home3/zeenyxor/public_html/b2evolution1/inc/_core/_template.funcs.php on line 40

Warning: Cannot modify header information - headers already sent by (output started at /home3/zeenyxor/public_html/b2evolution1/inc/_core/model/db/_db.class.php:49) in /home3/zeenyxor/public_html/b2evolution1/inc/_core/_template.funcs.php on line 317

Warning: Cannot modify header information - headers already sent by (output started at /home3/zeenyxor/public_html/b2evolution1/inc/_core/model/db/_db.class.php:49) in /home3/zeenyxor/public_html/b2evolution1/inc/_core/_template.funcs.php on line 318

Warning: Cannot modify header information - headers already sent by (output started at /home3/zeenyxor/public_html/b2evolution1/inc/_core/model/db/_db.class.php:49) in /home3/zeenyxor/public_html/b2evolution1/inc/_core/_template.funcs.php on line 319

Warning: Cannot modify header information - headers already sent by (output started at /home3/zeenyxor/public_html/b2evolution1/inc/_core/model/db/_db.class.php:49) in /home3/zeenyxor/public_html/b2evolution1/inc/_core/_template.funcs.php on line 320
Best Practice for using Selectors
« Zeenyx Software adds Loop Software & Testing Services as a North America Reseller & Implantation PartnerAscentialTest 9.5 is now available »

Best Practice for using Selectors

03/05/20

  10:37:00 am, by   , 189 words  
Categories: Uncategorized

Best Practice for using Selectors

While it is not always necessary to name the selector when using it to select a row in a table, it is always good practice.  In the example below, the row is selected using the ‘customer id’:

Best Practice for using Selectors

The action to select the row uses the selector ‘SelectByCustomerId’, but it does not actually specify the selector. Instead only the value of the selector, represented by the variable ‘CustId’, is specified:

Best Practice for using Selectors

Because the name of the selector is specified, its relative order in the AppObjects definition will not affect the result.

That action only works because the seclector SelectByCustomerId is listed first under its corresponding row (see the right most arrow in the figure above). If the selector called ‘SelectByLastName’ were moved up one line so that it was the first listed selector, then the action would fail. A more robust way to define an action that uses a selector is to specify the name of the selector along with its value as in the updated example below:

Best Practice for using Selectors

Because the name of the selector is specified, its relative order in the AppObjects definition will not affect the result.

 

 Permalink
Deprecated: Function create_function() is deprecated in /home3/zeenyxor/public_html/b2evolution1/inc/_core/_url.funcs.php on line 817

Deprecated: Function create_function() is deprecated in /home3/zeenyxor/public_html/b2evolution1/inc/_core/_url.funcs.php on line 818

Deprecated: Function create_function() is deprecated in /home3/zeenyxor/public_html/b2evolution1/inc/_core/_url.funcs.php on line 817

Deprecated: Function create_function() is deprecated in /home3/zeenyxor/public_html/b2evolution1/inc/_core/_url.funcs.php on line 818

No feedback yet

Zeenyx Software is committed to providing a solution for manual and automated testing that will allow all members of the team to build effective tests faster than with traditional manual testing methods so that a positive Return on Investment is achieved the very first time tests are deployed.

Search

  XML Feeds

powered by b2evolution CMS