Navigation

    SOFTWARE TESTING

    • Register
    • Login
    • Search
    • Job Openings
    • Freelance Jobs
    • Services
    • Conferences
    • Courses
    1. Home
    2. morde
    3. Posts
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by morde

    • RE: Run TestNG test several times with BeforeTest execution?

      use @BeforeMethod and @AfterMethod as following:

      public class DemoTest {
      
          private static final Logger log = LoggerFactory.getLogger(DemoTest.class);
      
          @BeforeMethod
          public void before() {
              log.info("before");
          }
      
          @AfterMethod
          public void after() {
              log.info("after");
          }
      
          @Test
          public void test1() {
              log.info("test1");
          }
      
          @Test
          public void test2() {
              log.info("test2");
          }
      }
      

      result:

      before
      test1
      after
      before
      test2
      after
      
      posted in Automated Testing
      morde
      morde
    • RE: Scrolling to the next element in Selenium (Python)

      Just use this:

      element = driver.find_element_by_xpath(textbox_id)
      
      driver.execute_script("arguments[0].scrollIntoView();", element) #Scrolls down until the element is visible
      
      posted in Automated Testing
      morde
      morde
    • How to write test case enumeration?

      Recently, while looking for a job change on manual QA, I had interviewed on regular testing concepts questions. But, in a few companies,they gave some scenario and asked to write test case enumerations for it. Is it like test steps I need to write.? As per my knowledge, enumeration means complete, ordered list of all the items in a collection, so, is it writing all the test steps with description.?

      posted in Manual Testing
      morde
      morde
    • 1 / 1