本文整理匯總了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)
示例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)
示例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)
示例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)
示例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")
示例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)
示例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)
示例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)
示例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")
示例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)
示例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)
示例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)
示例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)
示例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(), [])
示例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")