BeanShell for JUMP UI testing
{
bit0="0"; bit1="0"; bit2="0"; bit3="0"; bit4="0"; bit5="0"; bit6="0";
for (feature : wc.layerManager.getLayer("Result").featureCollectionWrapper.features) {
if (feature.getAttribute("Source").equals("TRIM")) {
if (feature.getAttribute("SrcState").equals("Standalone")) bit0 = "1";
if (feature.getAttribute("SrcState").equals("Matched (Reference)")) bit0 = "1";
if (feature.getAttribute("SrcState").equals("Retired")) bit2 = "1";
if (feature.getAttribute("SrcState").equals("Matched (Non-Reference)")) bit4 = "1";
}
if (feature.getAttribute("Source").equals("DRA")) {
if (feature.getAttribute("SrcState").equals("Standalone")) bit1 = "1";
if (feature.getAttribute("SrcState").equals("Matched (Reference)")) bit1 = "1";
if (feature.getAttribute("SrcState").equals("Retired")) bit3 = "1";
if (feature.getAttribute("SrcState").equals("Matched (Non-Reference)")) bit5 = "1";
}
}
if (wc.layerManager.getLayer("Vertex Transfer Vectors") != null) bit6 = "1";
print(bit0+bit1+bit2+bit3+bit4+bit5+bit6);
}
bit0="0"; bit1="0"; bit2="0"; bit3="0"; bit4="0"; bit5="0"; bit6="0";
for (feature : wc.layerManager.getLayer("Result").featureCollectionWrapper.features) {
if (feature.getAttribute("Source").equals("TRIM")) {
if (feature.getAttribute("SrcState").equals("Standalone")) bit0 = "1";
if (feature.getAttribute("SrcState").equals("Matched (Reference)")) bit0 = "1";
if (feature.getAttribute("SrcState").equals("Retired")) bit2 = "1";
if (feature.getAttribute("SrcState").equals("Matched (Non-Reference)")) bit4 = "1";
}
if (feature.getAttribute("Source").equals("DRA")) {
if (feature.getAttribute("SrcState").equals("Standalone")) bit1 = "1";
if (feature.getAttribute("SrcState").equals("Matched (Reference)")) bit1 = "1";
if (feature.getAttribute("SrcState").equals("Retired")) bit3 = "1";
if (feature.getAttribute("SrcState").equals("Matched (Non-Reference)")) bit5 = "1";
}
}
if (wc.layerManager.getLayer("Vertex Transfer Vectors") != null) bit6 = "1";
print(bit0+bit1+bit2+bit3+bit4+bit5+bit6);
}
0 Comments:
Post a Comment
<< Home