How to use addTest method in devicefarmer-stf

Best JavaScript code snippet using devicefarmer-stf

runtest_meng.py

Source:runtest_meng.py Github

copy

Full Screen

...69 return file_new70if __name__ == '__main__':71 testSuite = unittest.TestSuite()72 # 登录测试73 # testSuite.addTest(LoginSpec('test_verify_login'))74 # testSuite.addTest(LoginSpec('test_unexit_username'))75 # testSuite.addTest(LoginSpec('test_wrong_password'))76 # testSuite.addTest(LoginSpec('test_empty_username'))77 # testSuite.addTest(LoginSpec('test_empty_password'))78 # testSuite.addTest(LoginSpec('test_typeerror_username'))79 80 # 设置页面81 # testSuite.addTest(SettingSpec('test_go_to_comp_billing_page'))82 # testSuite.addTest(SettingSpec('test_go_to_contact_page'))83 # testSuite.addTest(SettingSpec('test_go_to_mutil_user_page'))84 # testSuite.addTest(SettingSpec('test_go_to_partner_set_page'))85 # testSuite.addTest(SettingSpec('test_go_to_tax_rate_page'))86 # testSuite.addTest(ContactSpec('test_click_add_btn'))87 # 工资88 # testSuite.addTest(AddStuffSpec('test_name_empty'))89 90 # 添加账户测试91 # testSuite.addTest(RecordAcountSpec('test_addaccount_1'))92 # testSuite.addTest(RecordAcountSpec('test_same_name'))93 # testSuite.addTest(RecordAcountSpec('test_empty_name'))94 #记账户互转 *注意:需要新增招商银行账户95 # testSuite.addTest(RecordTransterSpec('test1'))96 # testSuite.addTest(RecordTransterSpec('test2'))97 # testSuite.addTest(RecordTransterSpec('test3'))98 # testSuite.addTest(RecordTransterSpec('test4'))99 # testSuite.addTest(RecordTransterSpec('test5'))100 # testSuite.addTest(RecordTransterSpec('test6'))101 # testSuite.addTest(RecordTransterSpec('test7'))102 # testSuite.addTest(RecordTransterSpec('test8'))103 # # # # # #记收票测试104 # testSuite.addTest(RecordInputInvoiceSpec('test1'))105 # testSuite.addTest(RecordInputInvoiceSpec('test2'))106 # # # # #记开票测试107 # testSuite.addTest(RecordOutputInvoiceSpec('test1'))108 # testSuite.addTest(RecordOutputInvoiceSpec('test2'))109 # # # # #记固定资产110 # testSuite.addTest(RecordFixedSpec('test1'))111 # testSuite.addTest(RecordFixedSpec('test2'))112 # # # # # #记无形资产113 # testSuite.addTest(RecordIntangibleSpec('test1'))114 # testSuite.addTest(RecordIntangibleSpec('test2'))115 # #记所有的业务单:收入、支出、账户互转、收票、开票、固定资产、无形资产116 # # testSuite.addTest(RecordBusinessSpec('test1'))117 # # testSuite.addTest(RecordBusinessSpec('test2'))118 # # testSuite.addTest(RecordBusinessSpec('test3'))119 # # testSuite.addTest(RecordBusinessSpec('test4'))120 # # testSuite.addTest(RecordBusinessSpec('test5'))121 # # testSuite.addTest(RecordBusinessSpec('test6'))122 # # testSuite.addTest(RecordBusinessSpec('test7'))123 # # testSuite.addTest(RecordBusinessSpec('test8'))124 # # testSuite.addTest(RecordBusinessSpec('test9'))125 # # testSuite.addTest(RecordBusinessSpec('test10'))126 # # 现金流量表记收入,支出127 # testSuite.addTest(RecordTransactionSpecCash('test_record_income_cash'))128 # testSuite.addTest(RecordTransactionSpecCash('test_record_outcome_cash'))129 # 现金流量表数据校验130 testSuite.addTest(RecordTransactionSpecCash('test_cashFlows_1'))131 132 # #业务流程测试133 # # testSuite.addTest(PositiveFlowSpec('test1'))134 # # testSuite.addTest(PositiveFlowSpec('test2'))135 # # testSuite.addTest(PositiveFlowSpec('test3'))136 # # testSuite.addTest(PositiveFlowSpec('test4'))137 # # testSuite.addTest(PositiveFlowSpec('test5'))138 # # testSuite.addTest(PositiveFlowSpec('test6'))139 # # testSuite.addTest(PositiveFlowSpec('test7'))140 # # testSuite.addTest(PositiveFlowSpec('test8'))141 # # testSuite.addTest(PositiveFlowSpec('test9'))142 # # testSuite.addTest(PositiveFlowSpec('test10'))143 # # testSuite.addTest(PositiveFlowSpec('test11'))144 # #助理首页测试(导入)145 # # testSuite.addTest(AssistantDashbaordSPec('test1'))146 # testSuite.addTest(AssistantDashbaordSPec('test2'))147 # testSuite.addTest(AssistantDashbaordSPec('test3'))148 # testSuite.addTest(AssistantDashbaordSPec('test4'))149 #会计首页测试150 # testSuite.addTest(AccountDashbaordSPec('test1'))151 # testSuite.addTest(AccountDashbaordSPec('test2'))152 #生成凭证测试 *【注意】需要新增招商银行且没有流水记录153 # testSuite.addTest(GenerateVoucherSpec('test1'))154 # testSuite.addTest(GenerateVoucherSpec('test2'))155 # testSuite.addTest(GenerateVoucherSpec('test3'))156 #支出-生成凭证测试157 # testSuite.addTest(OutcomeVoucherSpec('test1'))158 #pro-自动化测试案例159 # testSuite.addTest(AssistantDashbaordSPec('test1'))160 # testSuite.addTest(AssistantDashbaordSPec('test2'))161 # testSuite.addTest(AssistantDashbaordSPec('test3'))162 # testSuite.addTest(RecordIncomeSpec('test6'))163 # testSuite.addTest(RecordOutcomeSpec('test6'))164 # testSuite.addTest(RecordTransterSpec('test7'))165 # testSuite.addTest(RecordInputInvoiceSpec('test1'))166 # testSuite.addTest(RecordInputInvoiceSpec('test2'))167 # testSuite.addTest(RecordOutputInvoiceSpec('test1'))168 # testSuite.addTest(RecordFixedSpec('test1'))169 # testSuite.addTest(RecordFixedSpec('test2'))170 # testSuite.addTest(RecordIntangibleSpec('test1'))171 # testSuite.addTest(RecordIntangibleSpec('test2'))172 # testSuite.addTest(AssistantDashbaordSPec('test4'))173 # testSuite.addTest(AccountDashbaordSPec('test1'))174 # testSuite.addTest(AccountDashbaordSPec('test2'))175 176 now = time.strftime('%Y-%m-%d %H_%M_%S')177 report_dir = './report'178 filename = report_dir + '/' + now + '_result.html'179 testReport = open(filename,'wb')180 runner = HTMLTestRunner(stream = testReport,title = "管有账测试报告",description='测试用例执行情况:')181 runner.run(testSuite)182 testReport.close()183 # new_report = find_new_report('./report')...

Full Screen

Full Screen

runtest.py

Source:runtest.py Github

copy

Full Screen

...68 return file_new69if __name__ == '__main__':70 testSuite = unittest.TestSuite()71 # 登录测试72 # testSuite.addTest(LoginSpec('test_verify_login'))73 # testSuite.addTest(LoginSpec('test_unexit_username'))74 # testSuite.addTest(LoginSpec('test_wrong_password'))75 # testSuite.addTest(LoginSpec('test_empty_username'))76 # testSuite.addTest(LoginSpec('test_empty_password'))77 # testSuite.addTest(LoginSpec('test_typeerror_username'))78 79 # 设置页面80 # testSuite.addTest(SettingSpec('test_go_to_comp_billing_page'))81 # testSuite.addTest(SettingSpec('test_go_to_contact_page'))82 # testSuite.addTest(SettingSpec('test_go_to_mutil_user_page'))83 # testSuite.addTest(SettingSpec('test_go_to_partner_set_page'))84 # testSuite.addTest(SettingSpec('test_go_to_tax_rate_page'))85 # testSuite.addTest(ContactSpec('test_click_add_btn'))86 # 工资87 # testSuite.addTest(AddStuffSpec('test_name_empty'))88 89 # 添加账户测试90 # testSuite.addTest(RecordAcountSpec('test_addaccount_1'))91 # testSuite.addTest(RecordAcountSpec('test_same_name'))92 # testSuite.addTest(RecordAcountSpec('test_empty_name'))93 #记账户互转 *注意:需要新增招商银行账户94 # testSuite.addTest(RecordTransterSpec('test1'))95 # testSuite.addTest(RecordTransterSpec('test2'))96 # testSuite.addTest(RecordTransterSpec('test3'))97 # testSuite.addTest(RecordTransterSpec('test4'))98 # testSuite.addTest(RecordTransterSpec('test5'))99 # testSuite.addTest(RecordTransterSpec('test6'))100 # testSuite.addTest(RecordTransterSpec('test7'))101 # testSuite.addTest(RecordTransterSpec('test8'))102 # # # # # #记收票测试103 # testSuite.addTest(RecordInputInvoiceSpec('test1'))104 # testSuite.addTest(RecordInputInvoiceSpec('test2'))105 # # # # #记开票测试106 # testSuite.addTest(RecordOutputInvoiceSpec('test1'))107 # testSuite.addTest(RecordOutputInvoiceSpec('test2'))108 # # # # #记固定资产109 # testSuite.addTest(RecordFixedSpec('test1'))110 # testSuite.addTest(RecordFixedSpec('test2'))111 # # # # # #记无形资产112 # testSuite.addTest(RecordIntangibleSpec('test1'))113 # testSuite.addTest(RecordIntangibleSpec('test2'))114 # #记所有的业务单:收入、支出、账户互转、收票、开票、固定资产、无形资产115 # # testSuite.addTest(RecordBusinessSpec('test1'))116 # # testSuite.addTest(RecordBusinessSpec('test2'))117 # # testSuite.addTest(RecordBusinessSpec('test3'))118 # # testSuite.addTest(RecordBusinessSpec('test4'))119 # # testSuite.addTest(RecordBusinessSpec('test5'))120 # # testSuite.addTest(RecordBusinessSpec('test6'))121 # # testSuite.addTest(RecordBusinessSpec('test7'))122 # # testSuite.addTest(RecordBusinessSpec('test8'))123 # # testSuite.addTest(RecordBusinessSpec('test9'))124 # # testSuite.addTest(RecordBusinessSpec('test10'))125 testSuite.addTest(RecordTransactionSpecCash('test_record_income_cash'))126 testSuite.addTest(RecordTransactionSpecCash('test_record_outcome_cash'))127 # #业务流程测试128 # # testSuite.addTest(PositiveFlowSpec('test1'))129 # # testSuite.addTest(PositiveFlowSpec('test2'))130 # # testSuite.addTest(PositiveFlowSpec('test3'))131 # # testSuite.addTest(PositiveFlowSpec('test4'))132 # # testSuite.addTest(PositiveFlowSpec('test5'))133 # # testSuite.addTest(PositiveFlowSpec('test6'))134 # # testSuite.addTest(PositiveFlowSpec('test7'))135 # # testSuite.addTest(PositiveFlowSpec('test8'))136 # # testSuite.addTest(PositiveFlowSpec('test9'))137 # # testSuite.addTest(PositiveFlowSpec('test10'))138 # # testSuite.addTest(PositiveFlowSpec('test11'))139 # #助理首页测试(导入)140 # # testSuite.addTest(AssistantDashbaordSPec('test1'))141 # testSuite.addTest(AssistantDashbaordSPec('test2'))142 # testSuite.addTest(AssistantDashbaordSPec('test3'))143 # testSuite.addTest(AssistantDashbaordSPec('test4'))144 #会计首页测试145 # testSuite.addTest(AccountDashbaordSPec('test1'))146 # testSuite.addTest(AccountDashbaordSPec('test2'))147 #生成凭证测试 *【注意】需要新增招商银行且没有流水记录148 # testSuite.addTest(GenerateVoucherSpec('test1'))149 # testSuite.addTest(GenerateVoucherSpec('test2'))150 # testSuite.addTest(GenerateVoucherSpec('test3'))151 #支出-生成凭证测试152 # testSuite.addTest(OutcomeVoucherSpec('test1'))153 #pro-自动化测试案例154 # testSuite.addTest(AssistantDashbaordSPec('test1'))155 # testSuite.addTest(AssistantDashbaordSPec('test2'))156 # testSuite.addTest(AssistantDashbaordSPec('test3'))157 # testSuite.addTest(RecordIncomeSpec('test6'))158 # testSuite.addTest(RecordOutcomeSpec('test6'))159 # testSuite.addTest(RecordTransterSpec('test7'))160 # testSuite.addTest(RecordInputInvoiceSpec('test1'))161 # testSuite.addTest(RecordInputInvoiceSpec('test2'))162 # testSuite.addTest(RecordOutputInvoiceSpec('test1'))163 # testSuite.addTest(RecordFixedSpec('test1'))164 # testSuite.addTest(RecordFixedSpec('test2'))165 # testSuite.addTest(RecordIntangibleSpec('test1'))166 # testSuite.addTest(RecordIntangibleSpec('test2'))167 # testSuite.addTest(AssistantDashbaordSPec('test4'))168 # testSuite.addTest(AccountDashbaordSPec('test1'))169 # testSuite.addTest(AccountDashbaordSPec('test2'))170 171 now = time.strftime('%Y-%m-%d %H_%M_%S')172 report_dir = './report'173 filename = report_dir + '/' + now + '_result.html'174 testReport = open(filename,'wb')175 runner = HTMLTestRunner(stream = testReport,title = "管有账测试报告",description='测试用例执行情况:')176 runner.run(testSuite)177 testReport.close()178 # new_report = find_new_report('./report')179 # send_mail(new_report)...

Full Screen

Full Screen

smoke_test_runner.py

Source:smoke_test_runner.py Github

copy

Full Screen

...7if __name__ == '__main__':8 testSuite = unittest.TestSuite()9 10 # # 登录测试11 # testSuite.addTest(LoginSpec('test_verify_login'))12 # testSuite.addTest(LoginSpec('test_unexit_username'))13 # testSuite.addTest(LoginSpec('test_wrong_password'))14 # testSuite.addTest(LoginSpec('test_empty_username'))15 # testSuite.addTest(LoginSpec('test_empty_password'))16 # testSuite.addTest(LoginSpec('test_typeerror_username'))17 18 # 设置页面19 # testSuite.addTest(SettingSpec('test_go_to_comp_billing_page'))20 # testSuite.addTest(SettingSpec('test_go_to_contact_page'))21 # testSuite.addTest(SettingSpec('test_go_to_mutil_user_page'))22 # testSuite.addTest(SettingSpec('test_go_to_partner_set_page'))23 # testSuite.addTest(SettingSpec('test_go_to_tax_rate_page'))24 25 # 设置-帐套信息页面26 # testSuite.addTest(CompBillingSpec('test_comp_name_empty'))27 # testSuite.addTest(CompBillingSpec('test_legal_person_name_empty'))28 # testSuite.addTest(CompBillingSpec('test_tax_num_empty'))29 # testSuite.addTest(CompBillingSpec('test_verify_edit_comp_info'))30 31 # 设置-往来性质(done)32 # testSuite.addTest(ContactSpec('test_show_add_modal'))33 # testSuite.addTest(ContactSpec('test_name_empty'))34 # testSuite.addTest(ContactSpec('test_phone_num_typeError'))35 # testSuite.addTest(ContactSpec('test_contact_input_show'))36 # testSuite.addTest(ContactSpec('test_contact_property_is_unit'))37 # testSuite.addTest(ContactSpec('test_contact_property_is_personal'))38 # testSuite.addTest(ContactSpec('test_name_repeat'))39 40 # 设置-股东信息(done)41 # testSuite.addTest(PartnersetSpec('test_click_add_btn_modal_is_show'))42 # testSuite.addTest(PartnersetSpec('test_partnerset_empty_invalid'))43 # testSuite.addTest(PartnersetSpec('test_actual_paid_empty_valid'))44 # testSuite.addTest(PartnersetSpec('test_partset_name_repeat_invalid'))45 # testSuite.addTest(PartnersetSpec('test_add_a_partner_valid'))46 # testSuite.addTest(PartnersetSpec('test_edit_partnerset_valid'))47 # testSuite.addTest(PartnersetSpec('test'))48 49 #50 # # 工资-添加员工51 # testSuite.addTest(AddStuffSpec('test_name_empty'))52 # testSuite.addTest(AddStuffSpec('test_country_empty'))53 # testSuite.addTest(AddStuffSpec('test_id_empty'))54 # testSuite.addTest(AddStuffSpec('test_employed_empty'))55 # testSuite.addTest(AddStuffSpec('test_verify_add_stuff'))56 # testSuite.addTest(AddStuffSpec('test_verify_add_labour'))57 # testSuite.addTest(AddStuffSpec('test'))58 59 # 记收支60 # 记所有科目和账户的收支、互转61 # testSuite.addTest(RecordTransactionSpec('test_record_income'))62 # testSuite.addTest(RecordTransactionSpec('test_record_outcome'))63 # testSuite.addTest(RecordTransactionSpec('test_record_transfer'))64 65 # # 记发票66 # # # 记所有类别发票67 # testSuite.addTest(RecordInvoiceSpec('test_record_input_invoice'))68 # testSuite.addTest(RecordInvoiceSpec('test_record_output_invoice'))69 # testSuite.addTest(RecordInvoiceSpec('test_record_output_invoice_xgm'))70 #71 # 报表72 # 73 # testSuite.addTest(ReportDataReadySpec('test_record_income'))74 # testSuite.addTest(ReportDataReadySpec('test_record_outcome'))75 # testSuite.addTest(ReportDataReadySpec('test_record_transfer'))76 # testSuite.addTest(ReportDataReadySpec('test_record_input_invoice'))77 # testSuite.addTest(ReportDataReadySpec('test_record_output_invoice'))78 79 # external80 # 记录完全部收入、支出、互转,手指列表本月收入为42,650.92,支出为70,584.3081 # testSuite.addTest(EnterCompSpec('test_enter_comp'))82 # 创建帐套83 # testSuite.addTest( CreateCompSpec( 'test_verify_create_comp' ) )84 # testSuite.addTest(CreateCompSpec('test_create_comp_empty_comp_name'))85 # testSuite.addTest(CreateCompSpec('test_create_comp_empty_legal_person'))86 # 帐套列表87 # 分配会计/助理/客服联系人88 # testSuite.addTest(DistributeModalSpec('test_distribute_accounting'))89 # 启用期初帐页面90 testSuite.addTest( BeginningPeriodSpec( 'test_import_initial_account' ) )91 92 # testSuite.addTest(UserSettingSpec('test_go_to_comp_billing_page'))93 # testSuite.addTest(SidebarSpec('test_get_current_account_period'))94 # testSuite.addTest(CreateWaysSpec('test_input_comp_name_jump_to_create_page'))95 96 now = time.strftime( '%Y-%m-%d %H_%M_%S' )97 report_dir = './report/cai_test'98 filename = report_dir + '/' + now + '_result.html'99 testReport = open( filename , 'wb' )100 runner = HTMLTestRunner( stream=testReport , title="管有账测试报告" , description='测试用例执行情况:' )101 runner.run( testSuite )...

Full Screen

Full Screen

form.js

Source:form.js Github

copy

Full Screen

1(function(has, addtest, cssprop){2 var STR = "string",3 FN = "function"4 ;5 function typeValidates( type ){6 input.setAttribute("type", type);7 input.value = "\x01";8 return has("input-checkvalidity") && input.type == type &&9 (/search|tel/.test(type) || input.value != "\x01" || !input.checkValidity());10 }11 if(!has("dom")){ return; }12 var input = document.createElement("input");13 addtest("input-checkvalidity", function(){14 return has.isHostType(input, "checkValidity");15 });16 addtest("input-attr-autocomplete", function(){17 return ("autocomplete" in input);18 });19 addtest("input-attr-autofocus", function(){20 return ("autofocus" in input);21 });22 addtest("input-attr-list", function(){23 return ("list" in input);24 });25 addtest("input-attr-placeholder", function(){26 return ("placeholder" in input);27 });28 addtest("input-attr-max", function(){29 return ("max" in input);30 });31 addtest("input-attr-maxlength", function(){32 return ("maxLength" in input);33 });34 addtest("input-attr-min", function(){35 return ("min" in input);36 });37 addtest("input-attr-multiple", function(){38 return ("multiple" in input);39 });40 addtest("input-attr-pattern", function(){41 return ("pattern" in input);42 });43 addtest("input-attr-readonly", function(){44 return ("readOnly" in input);45 });46 addtest("input-attr-required", function(){47 return ("required" in input);48 });49 addtest("input-attr-size", function(){50 return ("size" in input);51 });52 addtest("input-attr-step", function(){53 return ("step" in input);54 });55 addtest("input-attr-selectedoption", function(){56 return ("selectedOption" in input);57 });58 addtest("input-attr-indeterminate ", function(){59 return ("indeterminate" in input);60 });61 addtest("input-attr-willvalidate", function(){62 return ("willValidate" in input);63 });64 addtest("input-attr-valueasnumber", function(){65 return ("valueAsNumber" in input);66 });67 addtest("input-attr-valueasdate", function(){68 return ("valueAsDate" in input);69 });70 addtest("input-attr-validity", function(){71 return has.isHostType(input, "validity");72 });73 addtest("input-attr-validationmessage", function(){74 return ("validationMessage" in input);75 });76 addtest("input-attr-willvalidate", function(){77 return ("willValidate" in input);78 });79 addtest("input-type-color", function(){80 return typeValidates("color");81 });82 addtest("input-type-search", function(){83 return typeValidates("search");84 });85 addtest("input-type-tel", function(){86 return typeValidates("tel");87 });88 addtest("input-type-url", function(){89 return typeValidates("url");90 });91 addtest("input-type-email", function(){92 return typeValidates("email");93 });94 addtest("input-type-datetime", function(){95 return typeValidates("datetime");96 });97 addtest("input-type-date", function(){98 return typeValidates("date");99 });100 addtest("input-type-month", function(){101 return typeValidates("month");102 });103 addtest("input-type-week", function(){104 return typeValidates("week");105 });106 addtest("input-type-time", function(){107 return typeValidates("time");108 });109 addtest("input-type-datetime-local", function(){110 return typeValidates("datetime-local");111 });112 addtest("input-type-number", function(){113 return typeValidates("number");114 });115 addtest("input-type-range", function(g, d){116 return typeValidates("range");117 });118 addtest("input-speech", function(g, d){119 return ("speech" in input || "onwebkitspeechchange" in input);120 });...

Full Screen

Full Screen

evaluation.js

Source:evaluation.js Github

copy

Full Screen

1import { parse } from "@babel/parser";2import _traverse from "@babel/traverse";3const traverse = _traverse.default;4describe("evaluation", function () {5 function addTest(code, type, value, notConfident) {6 it(type + ": " + code, function () {7 const visitor = {};8 visitor[type] = function (path) {9 const evaluate = path.evaluate();10 expect(evaluate.confident).toEqual(!notConfident);11 expect(evaluate.value).toEqual(value);12 };13 traverse(14 parse(code, {15 plugins: ["*"],16 }),17 visitor,18 );19 });20 }21 addTest("void 0", "UnaryExpression", undefined);22 addTest("!true", "UnaryExpression", false);23 addTest("+'2'", "UnaryExpression", 2);24 addTest("-'2'", "UnaryExpression", -2);25 addTest("~1", "UnaryExpression", -2);26 addTest("3 - 1", "BinaryExpression", 2);27 addTest("5 + 5", "BinaryExpression", 10);28 addTest("10 / 2", "BinaryExpression", 5);29 addTest("2 * 3", "BinaryExpression", 6);30 addTest("4 % 2", "BinaryExpression", 0);31 addTest("2 ** 3", "BinaryExpression", 8);32 addTest("1 < 2", "BinaryExpression", true);33 addTest("1 > 2", "BinaryExpression", false);34 addTest("1 <= 2", "BinaryExpression", true);35 addTest("1 >= 2", "BinaryExpression", false);36 addTest("1 == '1'", "BinaryExpression", true);37 addTest("1 != 2", "BinaryExpression", true);38 addTest("'str' === 'str'", "BinaryExpression", true);39 addTest("'four' === 4", "BinaryExpression", false);40 addTest("'four' !== '4'", "BinaryExpression", true);41 addTest("'str' !== 'str'", "BinaryExpression", false);42 addTest("1 | 0", "BinaryExpression", 1);43 addTest("1 & 1", "BinaryExpression", 1);44 addTest("1 ^ 0", "BinaryExpression", 1);45 addTest("1 << 2", "BinaryExpression", 4);46 addTest("1 >> 2", "BinaryExpression", 0);47 addTest("1 in [1]", "BinaryExpression", undefined, true);48 addTest("A instanceof B", "BinaryExpression", undefined, true);49 addTest("'abc' === 'abc' && 1 === 1", "LogicalExpression", true);50 addTest("'abc' === 'abc' && 1 === 10", "LogicalExpression", false);51 addTest("'abc' === 'xyz' && 1 === 1", "LogicalExpression", false);52 addTest("'abc' === 'xyz' && 1 === 10", "LogicalExpression", false);53 addTest("'abc' === 'abc' || 1 === 1", "LogicalExpression", true);54 addTest("'abc' === 'abc' || 1 === 10", "LogicalExpression", true);55 addTest("'abc' === 'xyz' || 1 === 1", "LogicalExpression", true);56 addTest("'abc' === 'xyz' || 1 === 10", "LogicalExpression", false);57 addTest("'abc' === 'abc' || config.flag === 1", "LogicalExpression", true);58 addTest(59 "obj.a === 'abc' || config.flag === 1",60 "LogicalExpression",61 undefined,62 true,63 );64 addTest("'abc' !== 'abc' && config.flag === 1", "LogicalExpression", false);65 addTest("obj.a === 'abc' && 1 === 1", "LogicalExpression", undefined, true);66 addTest(67 "'abc' === 'abc' && (1 === 1 || config.flag)",68 "LogicalExpression",69 true,70 );71 addTest(72 "'abc' === 'xyz' || (1 === 1 && config.flag)",73 "LogicalExpression",74 undefined,75 true,76 );77 addTest(78 "'abc' === 'xyz' || (1 === 1 && 'four' === 'four')",79 "LogicalExpression",80 true,81 );82 addTest(83 "'abc' === 'abc' && (1 === 1 && 'four' === 'four')",84 "LogicalExpression",85 true,86 );87 addTest("({})", "ObjectExpression", {});88 addTest("({a: '1'})", "ObjectExpression", { a: "1" });89 addTest("({['a' + 'b']: 10 * 20, 'z': [1, 2, 3]})", "ObjectExpression", {90 ab: 200,91 z: [1, 2, 3],92 });...

Full Screen

Full Screen

test.py

Source:test.py Github

copy

Full Screen

...31import test_xmlnames2009120832import test_xsdatatypes2004102833def suite():34 s=unittest.TestSuite()35 s.addTest(test_html40_19991224.suite())36 s.addTest(test_imsbltiv1p0.suite())37 s.addTest(test_imscc_profilev1p0.suite())38 s.addTest(test_imscc_profilev1p1.suite())39 s.addTest(test_imscpv1p2.suite())40 s.addTest(test_imsmdv1p2p1.suite())41 s.addTest(test_imsqtiv1p2p1.suite())42 s.addTest(test_imsqtiv2p1.suite())43 s.addTest(test_iso8601.suite())44 s.addTest(test_odata2_core.suite())45 s.addTest(test_odata2_client.suite())46 s.addTest(test_odata2_csdl.suite())47 s.addTest(test_odata2_edmx.suite())48 s.addTest(test_odata2_memds.suite())49 s.addTest(test_odata2_server.suite())50 s.addTest(test_odata2_sqlds.suite())51 s.addTest(test_rfc2234.suite())52 s.addTest(test_rfc2396.suite())53 s.addTest(test_rfc2616.suite())54 s.addTest(test_rfc2617.suite())55 s.addTest(test_rfc4287.suite())56 s.addTest(test_rfc5023.suite())57 s.addTest(test_rtf_1p6.suite())58 s.addTest(test_unicode5.suite())59 s.addTest(test_vfs.suite())60 s.addTest(test_xml20081126.suite())61 s.addTest(test_xmlnames20091208.suite())62 s.addTest(test_xsdatatypes20041028.suite())63 return s64def load_tests(loader, tests, pattern):65 return suite()66 67if __name__ == "__main__":68# runner=unittest.TextTestRunner()69# runner.run(suite())70 logging.basicConfig(level=logging.ERROR)...

Full Screen

Full Screen

test-debugger-repl.js

Source:test-debugger-repl.js Github

copy

Full Screen

...3var repl = require('./helper-debugger-repl.js');4repl.startDebugger('breakpoints.js');5var addTest = repl.addTest;6// Next7addTest('n', [8 /break in .*:11/,9 /9/, /10/, /11/, /12/, /13/10]);11// Watch12addTest('watch("\'x\'")');13// Continue14addTest('c', [15 /break in .*:5/,16 /Watchers/,17 /0:\s+'x' = "x"/,18 /()/,19 /3/, /4/, /5/, /6/, /7/20]);21// Show watchers22addTest('watchers', [23 /0:\s+'x' = "x"/24]);25// Unwatch26addTest('unwatch("\'x\'")');27// Step out28addTest('o', [29 /break in .*:12/,30 /10/, /11/, /12/, /13/, /14/31]);32// Continue33addTest('c', [34 /break in .*:5/,35 /3/, /4/, /5/, /6/, /7/36]);37// Set breakpoint by function name38addTest('sb("setInterval()", "!(setInterval.flag++)")', [39 /1/, /2/, /3/, /4/, /5/, /6/, /7/, /8/, /9/, /10/40]);41// Continue42addTest('c', [43 /break in timers.js:\d+/,44 /\d/, /\d/, /\d/, /\d/, /\d/45]);46// Execute47addTest('exec process.title', [48 /node/49]);50// Execute51addTest('exec exec process.title', [52 /SyntaxError: Unexpected identifier/53]);54// REPL and process.env regression55addTest('repl', [56 /Ctrl/57]);58addTest('for (var i in process.env) delete process.env[i]', []);59addTest('process.env', [60 /\{\}/61]);62addTest('arr = [{foo: "bar"}]', [63 /\[ \{ foo: 'bar' \} \]/...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var stf = require('devicefarmer-stf-client');2stf.addTest('test1.js');3stf.addTest('test2.js');4stf.addTest('test3.js');5stf.addTest('test4.js');6stf.addTest('test5.js');7stf.addTest('test6.js');8stf.addTest('test7.js');9stf.addTest('test8.js');10stf.addTest('test9.js');11stf.addTest('test10.js');12stf.addTest('test11.js');13stf.addTest('test12.js');14stf.addTest('test13.js');15stf.addTest('test14.js');16stf.addTest('test15.js');17stf.addTest('test16.js');18stf.addTest('test17.js');19stf.addTest('test18.js');20stf.addTest('test19.js');21stf.addTest('test20.js');22stf.addTest('test21.js');23stf.addTest('test22.js');24stf.addTest('test23.js');25stf.addTest('test24.js');26stf.addTest('test25.js');27stf.addTest('test26.js');28stf.addTest('test27.js');29stf.addTest('test28.js');30stf.addTest('test29.js');31stf.addTest('test30.js');32stf.addTest('test31.js');33stf.addTest('test32.js');34stf.addTest('test33.js');35stf.addTest('test34.js');36stf.addTest('test35.js');37stf.addTest('test36.js');38stf.addTest('test37.js');39stf.addTest('test38.js');40stf.addTest('test39.js');41stf.addTest('test40.js');42stf.addTest('test41.js');43stf.addTest('test42.js');44stf.addTest('test43.js');45stf.addTest('test44.js');46stf.addTest('test45.js');47stf.addTest('test46.js');48stf.addTest('test47.js');49stf.addTest('test48.js');50stf.addTest('test49.js');51stf.addTest('test50.js');52stf.addTest('test51.js');53stf.addTest('test52.js');54stf.addTest('test53.js');55stf.addTest('test54

Full Screen

Using AI Code Generation

copy

Full Screen

1var client = require('devicefarmer-stf-client');2stf.addTest('xxxxx', 'test', 'test.js', function(err, result) {3 if (err) {4 console.log(err);5 } else {6 console.log(result);7 }8});9var client = require('devicefarmer-stf-client');10stf.addTest('xxxxx', 'test', 'test.js', function(err, result) {11 if (err) {12 console.log(err);13 } else {14 console.log(result);15 }16});17var client = require('devicefarmer-stf-client');18stf.addTest('xxxxx', 'test', 'test.js', function(err, result) {19 if (err) {20 console.log(err);21 } else {22 console.log(result);23 }24});25var client = require('devicefarmer-stf-client');26stf.addTest('xxxxx', 'test', 'test.js', function(err, result) {27 if (err) {28 console.log(err);29 } else {30 console.log(result);31 }32});33var client = require('devicefarmer-stf-client');34stf.addTest('xxxxx', 'test', 'test.js', function(err, result) {35 if (err) {36 console.log(err);37 } else {38 console.log(result);39 }40});41var client = require('devicefarmer-stf-client');

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run devicefarmer-stf automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful