• 可以啊,但是面试还是要来杭州的哈~

  • 邮件收到了,回复你了~

  • 7还是有休息的~

  • 各种补助,公司好看的单身妹子汉子都有算不算😂 编不下去了

  • 福利也是很好的😷

  • 听我解释😂 后期会恢复正常的,创业初期,所以加班多


  • 我这个报了个错

  • 作业3:

    PS作业中遇到的问题:同时使用unittest与pytest的参数化,启动app会崩溃

    #!/usr/bin/env python
    # -*- coding:utf-8 -*-

    import pytest
    from time import sleep
    from appium import webdriver
    from appium.webdriver.common.touch_action import TouchAction

    class Test_Xueqiu:

    @pytest.fixture(scope="function",autouse=True)
    def kaishi(self):
    # print("setUp")
    caps = {}
    caps["platformName"] = "android"
    caps["deviceName"] = "192.168.56.103:5555"
    caps["appPackage"] = "com.xueqiu.android"
    caps["appActivity"] = ".view.WelcomeActivityAlias"
    caps["autoGrantPermissions"] = "true"
    caps["unicodeKeyboard"] = "true"
    self.driver = webdriver.Remote("http://localhost:4723/wd/hub", caps)
    self.driver.implicitly_wait(10)

    def loaded(self):
    sleep(10)
    self.driver.find_element_by_xpath("//*[@text='自选' and contains(@resource-id, 'tab_name')]").click()

    def test_add_us(self):
    self.loaded()
    self.driver.find_element_by_id("action_create_cube").click()
    self.driver.find_element_by_id("search_input_text").send_keys("pdd")
    self.driver.find_element_by_id("follow_btn").click()
    self.driver.find_element_by_xpath("//*[@text='下次再说']").click()
    self.driver.find_element_by_id("action_close").click()
    self.driver.find_element_by_id("iv_close").click()
    self.driver.find_element_by_xpath("//*[@text='美股']").click()
    sleep(1)
    assert "拼多多"==self.driver.find_element_by_xpath("//*[@text='拼多多']").text
    def test_delete_us(self):
    self.loaded()
    self.driver.find_element_by_xpath("//*[@text='美股']").click()

    element = self.driver.find_element_by_xpath("//*[@text='拼多多']")
    TouchAction(self.driver).long_press(element).perform()
    self.driver.find_element_by_xpath("//*[@text='删除']").click()
    # assert self.driver.find_element_by_xpath("//*[@text='拼多多']")

    @pytest.mark.parametrize("is_leap", [
    "1", "2", "3", "4", "5"
    "6", "7", "8", "9", "10"
    "11", "12", "13", "14", "15"
    "16", "17", "18", "19", "20"
    "21", "22", "23", "24", "25"
    "26", "27", "28", "29", "30"
    ])
    def test_add_batch(self, is_leap):
    # 参数化添加30只股票

    self.loaded()
    self.driver.find_element_by_id("action_create_cube").click()
    self.driver.find_element_by_id("search_input_text").send_keys(is_leap)
    self.driver.find_element_by_id("follow_btn").click()
    self.driver.find_element_by_xpath("//*[@text='下次再说']").click()
    self.driver.find_element_by_id("action_close").click()

    @pytest.mark.parametrize("meigu",["pdd","apple","bidu","jd","yrd","LC","baba","googl","fb","amzn"])
    def test_add_ten(self,meigu):
    self.test_add_batch(meigu)

    def test_exist_in_all(self):
    #添加10只美股,当全部股票大于2页的时候断言某个股票同时存在于“美股”与“全部”分类中
    self.loaded()
    self.driver.find_element_by_xpath("//*[@text='美股']").click()
    assert self.driver.find_element_by_xpath("//*[@text='百度']").text=="百度"
    self.driver.find_element_by_xpath("//*[@text='全部']").click()
    i=0
    while i<3:
    try:
    self.driver.find_element_by_xpath("//*[@text='百度']")

    break
    except:
    self.driver.swipe(564.5, 1905.3, 377, 1070)
    i+=1
  • 作业2

    def test_alibaba_search(self):
    sleep(5)
    self.driver.find_element_by_xpath(
    "//*[@text='自选' and contains(@resource-id, 'tab_name')]").click()
    self.driver.find_element_by_id("action_create_cube").click()
    self.driver.find_element_by_id("search_input_text").send_keys("阿里巴巴")
    self.driver.find_element_by_id("follow_btn").click()
    self.driver.find_element_by_xpath("//*[@text='下次再说']").click()

    if self.driver.find_elements_by_id("followed_btn"):
    print("已添加")

    def test_alibaba_exist(self):
    sleep(5)
    self.driver.find_element_by_xpath(
    "//*[@text='自选' and contains(@resource-id, 'tab_name')]").click()
    if self.driver.find_element_by_class_name("android.widget.LinearLayout").find_element_by_id(
    "portfolio_stockName").get_attribute("text") == "阿里巴巴":
    print("阿里巴巴存在")
  • 作业1

    def test_search_add(self):
    sleep(5)
    self.driver.find_element_by_xpath(
    "//*[@text='自选' and contains(@resource-id, 'tab_name')]").click()
    self.driver.find_element_by_id("action_create_cube").click()
    self.driver.find_element_by_id("search_input_text").send_keys("alibaba")
    if len(self.driver.find_elements_by_id("follow_btn")) > 0:
    self.driver.find_element_by_id("follow_btn").click()
    self.driver.find_element_by_xpath("//*[@text='下次再说']").click()
    self.driver.find_element_by_id("action_close").click()
    self.driver.find_element_by_id("iv_close").click()
    assert 1 == len(self.driver.find_elements_by_xpath(
    "//*[contains(@resource-id, 'portfolio_stockName') and @text='阿里巴巴']"))