當前位置: 首頁>>代碼示例>>Python>>正文


Python Assert.assert_equal方法代碼示例

本文整理匯總了Python中JDI.jdi_assert.testing.assertion.Assert.assert_equal方法的典型用法代碼示例。如果您正苦於以下問題:Python Assert.assert_equal方法的具體用法?Python Assert.assert_equal怎麽用?Python Assert.assert_equal使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在JDI.jdi_assert.testing.assertion.Assert的用法示例。


在下文中一共展示了Assert.assert_equal方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: test_focus

# 需要導入模塊: from JDI.jdi_assert.testing.assertion import Assert [as 別名]
# 或者: from JDI.jdi_assert.testing.assertion.Assert import assert_equal [as 別名]
 def test_focus(self):
     value = "value"
     attribute_name = "focusTest"
     self.text_field.set_attribute(attribute_name, value)
     self.text_field.focus()
     driver = JDISettings.get_driver_factory().get_driver()
     result_value = driver._switch_to.active_element.get_attribute(attribute_name)
     Assert.assert_equal(value, result_value)
開發者ID:Mikhail9090,項目名稱:JDI,代碼行數:10,代碼來源:text_field_tests.py

示例2: test_get_options_as_text

# 需要導入模塊: from JDI.jdi_assert.testing.assertion import Assert [as 別名]
# 或者: from JDI.jdi_assert.testing.assertion.Assert import assert_equal [as 別名]
 def test_get_options_as_text(self):
     Assert.assert_equal(self.check_list.get_options_as_text(), self.all_values)
開發者ID:Mikhail9090,項目名稱:JDI,代碼行數:4,代碼來源:check_list_tests.py

示例3: test_is_selected_enum

# 需要導入模塊: from JDI.jdi_assert.testing.assertion import Assert [as 別名]
# 或者: from JDI.jdi_assert.testing.assertion.Assert import assert_equal [as 別名]
 def test_is_selected_enum(self):
     Assert.assert_equal(self.radio_buttons.is_selected(Odds.SEVEN), False)
     Assert.assert_equal(self.radio_buttons.is_selected(Odds.ONE), True)
開發者ID:Mikhail9090,項目名稱:JDI,代碼行數:5,代碼來源:radio_button_tests.py

示例4: test_get_selected_index

# 需要導入模塊: from JDI.jdi_assert.testing.assertion import Assert [as 別名]
# 或者: from JDI.jdi_assert.testing.assertion.Assert import assert_equal [as 別名]
 def test_get_selected_index(self):
     Assert.assert_equal(self.radio_buttons.get_selected_index(), 0)
開發者ID:Mikhail9090,項目名稱:JDI,代碼行數:4,代碼來源:radio_button_tests.py

示例5: test_get_name

# 需要導入模塊: from JDI.jdi_assert.testing.assertion import Assert [as 別名]
# 或者: from JDI.jdi_assert.testing.assertion.Assert import assert_equal [as 別名]
 def test_get_name(self):
     Assert.assert_equal(self.radio_buttons.get_name(),"odds_radio_buttons")
開發者ID:Mikhail9090,項目名稱:JDI,代碼行數:4,代碼來源:radio_button_tests.py

示例6: test_get_values

# 需要導入模塊: from JDI.jdi_assert.testing.assertion import Assert [as 別名]
# 或者: from JDI.jdi_assert.testing.assertion.Assert import assert_equal [as 別名]
 def test_get_values(self):
     Assert.assert_equal(self.radio_buttons.get_values(), self.odd_options)
開發者ID:Mikhail9090,項目名稱:JDI,代碼行數:4,代碼來源:radio_button_tests.py

示例7: test_get_reference

# 需要導入模塊: from JDI.jdi_assert.testing.assertion import Assert [as 別名]
# 或者: from JDI.jdi_assert.testing.assertion.Assert import assert_equal [as 別名]
 def test_get_reference(self):
     Assert.assert_equal(self.link.get_reference(), EpamJDISite.support_page.url)
開發者ID:Mikhail9090,項目名稱:JDI,代碼行數:4,代碼來源:link_tests.py

示例8: test_multi_key

# 需要導入模塊: from JDI.jdi_assert.testing.assertion import Assert [as 別名]
# 或者: from JDI.jdi_assert.testing.assertion.Assert import assert_equal [as 別名]
 def test_multi_key(self):
     for letter in self.input_text:
         self.text_field.send_keys(letter)
     Assert.assert_equal(self.text_field.get_text(), self.initial_text+self.input_text)
開發者ID:Mikhail9090,項目名稱:JDI,代碼行數:6,代碼來源:text_field_tests.py

示例9: test_get_options_as_text

# 需要導入模塊: from JDI.jdi_assert.testing.assertion import Assert [as 別名]
# 或者: from JDI.jdi_assert.testing.assertion.Assert import assert_equal [as 別名]
 def test_get_options_as_text(self):
     Assert.assert_equal(self.dropdown.get_options_as_text(), "Colors, Red, Green, Blue, Yellow")
開發者ID:Mikhail9090,項目名稱:JDI,代碼行數:4,代碼來源:dropdown_expanded_tests.py

示例10: test_get_values

# 需要導入模塊: from JDI.jdi_assert.testing.assertion import Assert [as 別名]
# 或者: from JDI.jdi_assert.testing.assertion.Assert import assert_equal [as 別名]
 def test_get_values(self):
     Assert.assert_equal(self.dropdown.get_values(), self.odd_options)
開發者ID:Mikhail9090,項目名稱:JDI,代碼行數:4,代碼來源:dropdown_expanded_tests.py

示例11: test_get_values

# 需要導入模塊: from JDI.jdi_assert.testing.assertion import Assert [as 別名]
# 或者: from JDI.jdi_assert.testing.assertion.Assert import assert_equal [as 別名]
 def test_get_values(self):
     Assert.assert_equal(self.check_list.get_values(), self.nature_options)
開發者ID:Mikhail9090,項目名稱:JDI,代碼行數:4,代碼來源:check_list_tests.py

示例12: test_get_value

# 需要導入模塊: from JDI.jdi_assert.testing.assertion import Assert [as 別名]
# 或者: from JDI.jdi_assert.testing.assertion.Assert import assert_equal [as 別名]
 def test_get_value(self):
     Assert.assert_equal(self.check_list.get_value(), None)
開發者ID:Mikhail9090,項目名稱:JDI,代碼行數:4,代碼來源:check_list_tests.py

示例13: test_are_deselected

# 需要導入模塊: from JDI.jdi_assert.testing.assertion import Assert [as 別名]
# 或者: from JDI.jdi_assert.testing.assertion.Assert import assert_equal [as 別名]
 def test_are_deselected(self):
     Assert.assert_equal(self.check_list.are_deselected(), self.nature_options)
開發者ID:Mikhail9090,項目名稱:JDI,代碼行數:4,代碼來源:check_list_tests.py

示例14: test_are_selected

# 需要導入模塊: from JDI.jdi_assert.testing.assertion import Assert [as 別名]
# 或者: from JDI.jdi_assert.testing.assertion.Assert import assert_equal [as 別名]
 def test_are_selected(self):
     Assert.assert_equal(self.check_list.are_selected(), [])
開發者ID:Mikhail9090,項目名稱:JDI,代碼行數:4,代碼來源:check_list_tests.py

示例15: test_get_name

# 需要導入模塊: from JDI.jdi_assert.testing.assertion import Assert [as 別名]
# 或者: from JDI.jdi_assert.testing.assertion.Assert import assert_equal [as 別名]
 def test_get_name(self):
     Assert.assert_equal(self.check_list.get_name(), "nature_check_list")
開發者ID:Mikhail9090,項目名稱:JDI,代碼行數:4,代碼來源:check_list_tests.py


注:本文中的JDI.jdi_assert.testing.assertion.Assert.assert_equal方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。