Testing Flashcards

(5 cards)

1
Q

What is negative testing

A

A type of testing ensures that your application can gracefully handle invalid input or unexpected user behaviour

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the Selenium Webdriver selectors is most powerful (has most features and can find elements by more parameters)

A

xpath

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the correct way to change the content of block p

<p>This is a demonstration.</p>

document.getElementByName(“p”).innerHTML=”Hello World!”;
document.getElement(“p”).innerHTML=”Hello World!”;
document.getElementById(“demo”).innerHTML=”Hello World!”;
#demo.innerHTML=”Hello World!”;

A

✅document.getElementById(“demo”).innerHTML = “Hello World!”;

❌ getElementsByName, works if elements have a name attribute, not for <p> tags.

❌ No method named getElement is in the DOM API.

❌ #demo is a CSS selector, not valid in plain JavaScript.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the most covinient way to add an image to a bug report, chose from answers below:
attach standalone *.jpg or *png image
attach the whole webpage
attach only *html file
attach *pdf file with the inserted image

A

✅ Attach standalone .jpg or .png image

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Page Object is
another name of PageFactory
object that represents an application (under test) page or its part
interface that is implemented by Page Factory
Java Script build in object that represents a visible element on the page

A

✅ object that represents an application (under test) page or its part

How well did you know this?
1
Not at all
2
3
4
5
Perfectly