Mini Kabibi Habibi
layout badgerTestPanel
{
interface:
testSearchVisible : true;
constant:
zBadgerTestTooltip : '$$$/private/BadgerTestPanel/Tooltips/BadgerTest=Badger Test';
zSearchIcon : 'FilteringLayerSearch';
kRunAllTestsTooltip : "$$$/private/BadgerTestPanel/Tooltips/RunAllButtonTooltip=Run All Tests";
kRunSelectedTestsTooltip : "$$$/private/BadgerTestPanel/Tooltips/RunSelectedButtonTooltip=Run Selected Tests";
kShowOutputTestResults : "$$$/private/BadgerTestPanel/TestResults/ShowOutput=Output";
kShowPassedTestResults : "$$$/private/BadgerTestPanel/TestResults/showPassed=Passed";
kShowFailedTestResults : "$$$/private/BadgerTestPanel/TestResults/showFailed=Failed";
kShowSkippedTestResults : "$$$/private/BadgerTestPanel/TestResults/showSkipped=Skipped";
kShowOutputTestResultsTooltip : "$$$/private/BadgerTestPanel/Tooltips/ShowOutputTooltip=View the summary of all the tests executed.";
kShowPassedTestResultsTooltip : "$$$/private/BadgerTestPanel/Tooltips/showPassedTooltip=View the tests which have passed.";
kShowFailedTestResultsTooltip : "$$$/private/BadgerTestPanel/Tooltips/showFailedTooltip=View the tests that have failed.";
kShowSkippedTestResultsTooltip : "$$$/private/BadgerTestPanel/Tooltips/showSkippedTooltip=View the tests that have skipped.";
kTestTag : '$$$/private/BadgerTestPanel/Label/TestTag=Tag:';
kTestTagToolTip : '$$$/private/BadgerTestPanel/Label/TestTagTooltip=Filter by this tag';
kIncludeSkipTests : '$$$/private/BadgerTestPanel/Label/IncludeSkipTests=Include tests tagged with badger-skip';
view TBadgerTestPanel(
name : '$$/private/BadgerTestPanel/Title=Badger Test',
height : 400,
width : 400,
margin : [0, 2, 0, 5])
{
column(
horizontal : align_fill,
vertical : align_fill,
spacing : -1)
{
column(
spacing : 8,
horizontal : align_fill)
{
TOptional(
bind : @testSearchVisible,
value : true,
height : 25,
horizontal : align_fill)
{
row(horizontal: align_fill, child_vertical: align_center, spacing: 2)
{
TIconImageView(iconRootName : zSearchIcon);
TEditText (identifier: @badgerTestText,
width: 20,
horizontal : align_fill,
maxChars: 250);
}
}
}
row(horizontal: align_fill, child_vertical: align_center, spacing: gGap, margin : [0, 2, 0, 5])
{
TStaticText(name : kTestTag, tooltip: kTestTagToolTip);
ZMenuPopup(
uniqueID : true,
identifier : @badgerTag,
width : 200,
horizontal : align_fill,
tooltip : kTestTagToolTip);
}
row(horizontal: align_fill, child_vertical: align_center, spacing: gGap, margin : [0, 2, 0, 5])
{
TCheckBox(
identifier: @badgerIncludeSkipTests,
name: kIncludeSkipTests
);
}
TStaticText(name : "$$$/private/BadgerTestPanel/TestLabel=Available Tests",
height : 15, margin : [0, 10, 0, 5], isLabel : true);
row (horizontal: align_fill, vertical: align_fill)
{
TScroller(identifier : @scroller,
horizontal : align_fill,
vertical : align_fill,
height : 100,
verticalScroll : true,
horizontalScroll: false,
placement: place_row)
{
TBadgerTestListView(
identifier : @badgerTestListView,
horizontal : align_fill,
vertical : align_fill);
}
}
TSeparator(height: 2, horizontal: align_fill);
column (horizontal: align_fill, vertical: align_fill, height: 140)
{
TSeparator(height: 2, horizontal: align_fill);
row (horizontal: align_fill, height : 15, vertical: align_fill)
{
TStaticText(name : "$$$/private/BadgerTestPanel/TestReportLabel=Results:");
TRadioBar(identifier : @badgerPanelTestResultsViewOption,
width : 300,
height : 15,
skin : 'text',
horizontal : align_fill,
vertical : align_top,
identifier1 : 'otpr',
name1 : kShowOutputTestResults,
tooltip1 : kShowOutputTestResultsTooltip,
identifier2 : 'pdrs',
name2 : kShowPassedTestResults,
tooltip2 : kShowPassedTestResultsTooltip,
identifier3 : 'fdrs',
name3 : kShowFailedTestResults,
tooltip3 : kShowFailedTestResultsTooltip,
identifier4 : 'sprs',
name4 : kShowSkippedTestResults,
tooltip4 : kShowSkippedTestResultsTooltip);
}
TEditText(horizontal : align_fill, width : 280, height: 110, vertical : align_fill,
autoWrap : false, identifier : @testReportView, maxChars : 524288, readOnly : false,
verticalScroll : true, horizontalScroll : true, carriageReturn : true, default : "$$$/private/BadgerTestPanel/TestReport=Test report"
);
}
TSeparator(height: 2, horizontal: align_fill);
row(horizontal: align_right, child_vertical: align_center, height: 20, margin : [0, 0, 0, 10])
{
TModernTextButton(identifier : @runAllButton,
name: '$$$/private/BadgerTestPanel/RunAllButton=Run All', width: 100);
}
}
}
}