Navigation

    SOFTWARE TESTING

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

    jeanid

    @jeanid

    0
    Reputation
    5
    Posts
    1
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    jeanid Follow

    Best posts made by jeanid

    This user hasn't posted anything yet.

    Latest posts made by jeanid

    • RE: Performance Testing vs Unit Testing

      I agree that performance tests cannot be unit tests but there is no reason we cannot have another set of tests called performance tests. Broadly the tests fall under two categories

      a) Unit tests

      b) Integration tests

      We run integration tests again the real database (instead of in memory) to ensure the sql scripts, the hibernate repositories work as expected

      My idea is we can add another set of tests called performance tests which are a part of nightly build which tests for performance of certain functions. This is important to track down the statistics after a code re factoring or to evaluate if changes to one part of application can have unintended consequence on another.

      I have come across JunitPerf which might help me to achieve this objective.

      posted in Performance
      jeanid
      jeanid
    • RE: How to find elements by multiple different xpaths

      Try below xpath to identify.

      //span[contains(text(),'I am span')] | //div[contains(text(),'I am Div')] | //input[contains(text(),'I am input')]
      
      posted in Automated Testing
      jeanid
      jeanid
    • RE: How to get the dynamic website content using Selenium?

      I would recommend not to use time.sleep() with selenium. Instead WebDriverWait / presence_of_element_located() can be used:

      from selenium import webdriver
      from selenium.webdriver.support import expected_conditions as EC
      from selenium.webdriver.common.by import By
      from selenium.webdriver.support.ui import WebDriverWait
      from selenium.common.exceptions import TimeoutException
      from bs4 import BeautifulSoup
      
      DELAY = 30
      wd = webdriver.Chrome("<PATH_TO_CHROME_DRIVER>")
      
      wd.maximize_window()
      url = 'https://www.aodour.pk/brand/hemani'
      wd.get(url)
      
      try:
          # waiting for pop-up
          landing_popup = WebDriverWait(wd, DELAY).until(EC.presence_of_element_located((By.CLASS_NAME, 'landing_popup')))
          # waiting for loader to vanish
          page_loader = WebDriverWait(wd, DELAY).until_not(EC.presence_of_element_located((By.CLASS_NAME, 'pageloader')))
          # waiting for button to be clickable
          close_button = WebDriverWait(wd, DELAY).until(EC.element_to_be_clickable((By.XPATH, '//button[./span[contains(@class, "icon-close")]]')))
          wd.execute_script("arguments[0].click();", close_button)
          print("Ad skipped")
      except TimeoutException:
          print("Ad pop-up didn't appeared")
      except Exception as e:
          print("Error: " + str(e))
      
      
      html = wd.page_source
      soup = BeautifulSoup(html, 'html.parser')
      
      print(soup)
      
      posted in Automated Testing
      jeanid
      jeanid
    • RE: How can I do performance and load testing for login authenticated web application?

      You can use Jmeter. Jmeter is best for load and performance testing. you can create HTTP request. Jmeter also display the response timing of all HTTP request with status.

      posted in Performance
      jeanid
      jeanid
    • RE: How to resize Selenium browser window to emulate a phone screen using Python?

      Maybe using webdriver as a variable name for the webdriver is confusing. Try using

      driver = webdriver.Chrome(executable_path=chromedriver_path)
      

      And then you can resize window size with the following

      driver.set_window_size(340, 695)
      
      posted in Automated Testing
      jeanid
      jeanid