how to write test case for GUI testing and tell me in brief
about GUI and all related WEB based testing..if possible
then pls give example of its test case...m new in
testing........thannx for help in advance
Answer / Nirupma Mishra
To write GUI (Graphical User Interface) test cases, you can use various tools such as Selenium WebDriver for web-based applications, Appium for mobile applications, or TestComplete for desktop applications. Here is a brief overview of GUI and related web testing:n
1. GUI: A graphical user interface allows users to interact with software through visual elements like buttons, menus, dialog boxes, and windows.
2. Web-based testing: Testing web applications on various browsers and devices to ensure compatibility, usability, functionality, and performance.nnFor an example test case using Selenium, consider a simple login page with username and password fields:nn```javanimport org.openqa.selenium.*;nimport org.openqa.selenium.firefox.*;nnpublic class LoginTest {n public static void main(String[] args) {n WebDriver driver = new FirefoxDriver();n String baseUrl = "http://example.com/";nsystem.setProperty("webdriver.gecko.driver", "/path/to/geckodriver");ndriver.get(baseUrl + "login.html");nWebElement usernameField = driver.findElement(By.name("username"));nWebElement passwordField = driver.findElement(By.name("password"));nWebElement loginButton = driver.findElement(By.id("login-button"));nn// Enter the correct username and passwordnusernameField.sendKeys("testuser");npasswordField.sendKeys("testpassword");nn// Click on the login buttonnloginButton.click();n}n}```
| Is This Answer Correct ? | 0 Yes | 0 No |
You have designed test cases to provide 100% statement and 100% decision coverage for the following fragment of code. If width > length then biggest_dimension = width else biggest_dimension = length end_if the following has been added to the bottom of the code fragment above. Print 'biggest dimension is ' &biggest_dimensionprint 'width: ' & width print 'length: ' & length how many more test cases are required?
Write test cases for this scenario if a job fails it should get restarted again this should happen for three times if it fails again then it should quit?
Explain the integration testing?
How do you review the test cases which are prepared by your team member. answer is: using traceability matrix, matching testcases with the requirements. He again asked - assume that all the test cases are matched with the requirements, then what do you do, how do you proceed in this case..
In any Hyderabd institute you can find these word commomly used by faculties ... Yes or no / Right or wrong so funny...
What is test cases for mobile phone ?
plz tell how to test this: We have to change the password of password field the condition is:The password will expiry after 30 days and that should not allow last 12 similar passwords....
write the test case flipart.com
write test cases for this senario if a job fails it should get restarted again this should happen for three times if it fails again then it should quit?
Explain the unit testing?
anybody can send cross site scripting test cases pls...
hoe to write test cases for the below field --------------- --------------- browse upload