全国大学生软件测试大赛Web应用大赛训练题功能测试脚本

这篇具有很好参考价值的文章主要介绍了全国大学生软件测试大赛Web应用大赛训练题功能测试脚本。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

全国大学生软件测试大赛Web应用大赛训练题功能测试脚本
全国大学生软件测试大赛,前端,selenium

1:findu

driver.get("http://114.215.176.95:60505/FindU/html/index.jsp");
    	Thread.sleep(3000);
    	//点击“登录”
    	driver.findElement(By.xpath("/html/body/header/div[1]/div[2]/ul/li[1]/a[2]")).click();
    	Thread.sleep(3000);
    	
    	//输入用户名和密码,并点击登录  8.33
    	driver.findElement(By.xpath("//*[@id=\"UserName\"]")).click();
    	driver.findElement(By.xpath("//*[@id=\"UserName\"]")).sendKeys("xhy1@qq.com");
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"PassWord\"]")).click();
    	driver.findElement(By.xpath("//*[@id=\"PassWord\"]")).sendKeys("123456");
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"agileits-sign-in-page\"]/div/form/input[3]")).click();
    	Thread.sleep(3000);
    	
    	//点击“浏览所有类别”  10.42
    	WebDriverWait wait = new WebDriverWait(driver, 15);
    	wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//*[@id=\"large-btns1_s0\"]/div/a")));
    	driver.findElement(By.xpath("//*[@id=\"large-btns1_s0\"]/div/a")).click();
    	Thread.sleep(3000);
    	
//    	在“输入您要查找的物品信息”文本框中输入空格,在“所有分类”下拉列表中选择“银行卡”,进行搜索   18.75
    	driver.findElement(By.xpath("//*[@id=\"Search\"]")).click();
    	driver.findElement(By.xpath("//*[@id=\"Search\"]")).sendKeys(" ");
    	Thread.sleep(3000);
    	driver.findElement(By.xpath("//*[@id=\"agileinfo_search\"]")).click();
    	Thread.sleep(3000);
    	driver.findElement(By.xpath("//*[@id=\"agileinfo_search\"]/option[3]")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/header/div[2]/div/div[2]/form/button")).click();
    	Thread.sleep(4000);
    	
    	
//    	点击页面中的“校园卡”
    	driver.findElement(By.xpath("/html/body/div[3]/div/div[1]/ul/li[1]/a")).click();
    	Thread.sleep(2000);
    	
//    	然后依次点击框内的所有内容,最后一个点击“身份证”
    	driver.findElement(By.xpath("/html/body/div[3]/div/div[2]/ul/li[2]/a")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div[3]/div/div[2]/ul/li[3]/a")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div[3]/div/div[2]/ul/li[4]/a")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div[3]/div/div[2]/ul/li[5]/a")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div[3]/div/div[2]/ul/li[6]/a")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div[3]/div/div[2]/ul/li[7]/a")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div[3]/div/div[2]/ul/li[8]/a")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div[3]/div/div[2]/ul/li[9]/a")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div[3]/div/div[2]/ul/li[10]/a")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div[3]/div/div[2]/ul/li[11]/a")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div[3]/div/div[2]/ul/li[12]/a")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div[3]/div/div[2]/ul/li[13]/a")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div[3]/div/div[2]/ul/li[14]/a")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div[3]/div/div[2]/ul/li[15]/a")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div[3]/div/div[2]/ul/li[16]/a")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div[3]/div/div[2]/ul/li[17]/a")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div[3]/div/div[2]/ul/li[18]/a")).click();
    	Thread.sleep(2000);
    	
//    	点击“有图片的物品”进行查看 
    	driver.findElement(By.xpath("//*[@id=\"profile-tab\"]")).click();
    	Thread.sleep(3000);
    	
//    	点击“所有物品”
    	driver.findElement(By.xpath("//*[@id=\"home-tab\"]")).click();
    	Thread.sleep(3000);
    	
//    	切换浏览模式
    	driver.findElement(By.xpath("//*[@id=\"viewcontrols\"]/a[1]/i")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"viewcontrols\"]/a[2]/i")).click();
    	Thread.sleep(3000);
    	
//    	选择第一个物品并点击进入
    	driver.findElement(By.xpath("//*[@id=\"container\"]/ul/a[1]")).click();
    	Thread.sleep(3000);
    	
//    	点击“申领该物品”
    	driver.findElement(By.xpath("/html/body/div[3]/div/div/div[2]/div[3]/p/a")).click();
    	Thread.sleep(3000);
    	
//    	填写内容,并点击“提交申请” 
    	driver.findElement(By.xpath("/html/body/div[3]/div/div/form/textarea")).click();
    	driver.findElement(By.xpath("/html/body/div[3]/div/div/form/textarea")).sendKeys("一张2010 年申请办理的身份证");;
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div[3]/div/div/form/div[3]/input[1]")).click();
    	driver.findElement(By.xpath("/html/body/div[3]/div/div/form/div[3]/input[1]")).sendKeys("13811112222");;
    	Thread.sleep(3000);
    	driver.findElement(By.xpath("/html/body/div[3]/div/div/form/div[3]/input[2]")).click();
       	Thread.sleep(3000);
    	
    	
    	
//    	点击个人图标,并选择“个人中心”
       	driver.findElement(By.xpath("/html/body/header/div[1]/div[2]/ul/li[1]/a")).click();
       	Thread.sleep(2000);
       	driver.findElement(By.xpath("/html/body/header/div[1]/div[2]/ul/li[1]/ul/li[1]/a")).click();
       	Thread.sleep(3000);
       	
    	
    	
//    	对红框内的多有项进行点选查看 
    	driver.findElement(By.xpath("/html/body/div[2]/ul/li[1]/a")).click();
       	Thread.sleep(2000);
       	driver.findElement(By.xpath("/html/body/div[2]/ul/li[2]/a")).click();
       	Thread.sleep(2000);
       	driver.findElement(By.xpath("/html/body/div[2]/ul/li[3]/a")).click();
       	Thread.sleep(2000);
       	driver.findElement(By.xpath("/html/body/div[2]/ul/li[4]/a")).click();
       	Thread.sleep(2000);
       	driver.findElement(By.xpath("/html/body/div[2]/ul/li[5]/a")).click();
       	Thread.sleep(2000);
       	driver.quit();

2:girlbbs

driver.get("http://114.215.176.95:60509/girl-bbs/index.jsp");
    	
    	driver.findElement(By.xpath("/html/body/table[1]/tbody/tr/td/table/tbody/tr[2]/td/table/tbody/tr[1]/td[2]/a/font")).click();
    	Thread.sleep(2000);
    	
    	driver.findElement(By.xpath("/html/body/table[1]/tbody/tr/td/table/tbody/tr[2]/td/font/form/table/tbody/tr[3]/td/a/font")).click();
    	Thread.sleep(2000);
    	
    	driver.findElement(By.xpath("/html/body/table[1]/tbody/tr/td/table/tbody/tr[2]/td/table/tbody/tr[3]/td[2]/a/font")).click();
    	Thread.sleep(2000);
    	
    	driver.findElement(By.xpath("/html/body/table[1]/tbody/tr/td/table/tbody/tr[2]/td/form/table/tbody/tr[2]/td[2]/input")).sendKeys("81311121");
    	Thread.sleep(1000);
    	driver.findElement(By.xpath("/html/body/table[1]/tbody/tr/td/table/tbody/tr[2]/td/form/table/tbody/tr[3]/td[2]/input")).sendKeys("11211");
    	Thread.sleep(1000);
    	driver.findElement(By.xpath("/html/body/table[1]/tbody/tr/td/table/tbody/tr[2]/td/form/table/tbody/tr[4]/td[2]/input")).sendKeys("11211");
    	Thread.sleep(1000);
    	driver.findElement(By.xpath("/html/body/table[1]/tbody/tr/td/table/tbody/tr[2]/td/form/table/tbody/tr[5]/td[2]/select")).click();
    	Thread.sleep(1000);
    	driver.findElement(By.xpath("/html/body/table[1]/tbody/tr/td/table/tbody/tr[2]/td/form/table/tbody/tr[5]/td[2]/select/option[2]")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/table[1]/tbody/tr/td/table/tbody/tr[2]/td/form/table/tbody/tr[6]/td[2]/input")).sendKeys("2121");
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/table[1]/tbody/tr/td/table/tbody/tr[2]/td/form/table/tbody/tr[7]/td[2]/input")).sendKeys("2121");
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/table[1]/tbody/tr/td/table/tbody/tr[2]/td/form/table/tbody/tr[8]/td[2]/input[1]")).click();
    	Thread.sleep(4000);
    	
    	driver.findElement(By.xpath("/html/body/center[2]/table[1]/tbody/tr/td/table/tbody/tr[2]/td/center/a[1]/font")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/center[2]/table[1]/tbody/tr/td/table/tbody/tr[2]/td/center/a[4]/font")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/center[2]/table[1]/tbody/tr/td/table/tbody/tr[2]/td/center/a[2]/font")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/center[2]/table[1]/tbody/tr/td/table/tbody/tr[2]/td/center/a[3]/font")).click();
    	Thread.sleep(2000);
  	
    	driver.findElement(By.xpath("/html/body/center[2]/form/input[1]")).sendKeys("test");
    	Thread.sleep(1500);
    	driver.findElement(By.xpath("/html/body/center[2]/form/input[2]")).click();
    	Thread.sleep(2000);

    	driver.findElement(By.xpath("/html/body/center/center[2]/a[2]")).click();
    	Thread.sleep(3000);
   	
    	driver.findElement(By.xpath("/html/body/center[2]/a[2]")).click();
    	Thread.sleep(2000);
    	
    	driver.findElement(By.xpath("/html/body/table[1]/tbody/tr/td/table/tbody/tr[2]/td/form/table/tbody/tr[1]/td/input")).sendKeys("111");
    	Thread.sleep(1500);
    	driver.findElement(By.xpath("/html/body/table[1]/tbody/tr/td/table/tbody/tr[2]/td/form/table/tbody/tr[3]/td/textarea")).sendKeys("1111111");
    	Thread.sleep(1500);
    	driver.findElement(By.xpath("/html/body/table[1]/tbody/tr/td/table/tbody/tr[2]/td/form/table/tbody/tr[4]/td/input")).click();
    	Thread.sleep(2000);
    	
    	driver.findElement(By.xpath("/html/body/center[2]/a[1]")).click();
    	Thread.sleep(2000);

3:myoffice

driver.get("http://114.215.176.95:60503/goodmanage/index.jsp");
    	Thread.sleep(2000);
    	
//    	账号zhangsan密码123456
    	driver.findElement(By.xpath("//*[@id=\"userName\"]")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"userName\"]")).sendKeys("zhangsan");
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"password\"]")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"password\"]")).sendKeys("123456");
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"btnLogin\"]")).click();
    	Thread.sleep(2000);
    	
        driver.switchTo().frame(driver.findElement(By.xpath("//*[@id=\"leftFrame\"]")));
        Thread.sleep(2000);
        driver.findElement(By.xpath("//*[@id=\"menuTree\"]/div/div[4]/div[1]/span[2]/a")).click();
        Thread.sleep(2000);
        driver.findElement(By.xpath("//*[@id=\"menuTree\"]/div/div[4]/div[2]/div/span[2]/a")).click();
        Thread.sleep(4000);
        driver.switchTo().defaultContent();
        Thread.sleep(2000);
        driver.switchTo().frame(driver.findElement(By.xpath("//*[@id=\"mainFrame\"]")));
        driver.findElement(By.xpath("//*[@id=\"productName\"]")).click();
        Thread.sleep(2000);
        driver.findElement(By.xpath("//*[@id=\"productName\"]")).sendKeys("fgg");
        Thread.sleep(2000);
        driver.findElement(By.xpath("//*[@id=\"productPrice\"]")).click();
        Thread.sleep(2000);
        driver.findElement(By.xpath("//*[@id=\"productPrice\"]")).sendKeys("100");
        Thread.sleep(2000);
        driver.findElement(By.xpath("//*[@id=\"description\"]")).click();
        Thread.sleep(2000);
        driver.findElement(By.xpath("//*[@id=\"description\"]")).sendKeys("fggll");
        Thread.sleep(2000);
        driver.findElement(By.xpath("//*[@id=\"productNumber\"]")).click();
        Thread.sleep(2000);
        driver.findElement(By.xpath("//*[@id=\"productNumber\"]")).sendKeys("1");
        Thread.sleep(2000);
        driver.findElement(By.xpath("/html/body/div/table/tbody/tr[2]/td[2]/div/form/table/tbody/tr[5]/td/input[1]")).click();
        Thread.sleep(2000);
        
        driver.switchTo().defaultContent();
        Thread.sleep(2000);
        driver.switchTo().frame(driver.findElement(By.xpath("//*[@id=\"leftFrame\"]")));
        Thread.sleep(2000);
        driver.findElement(By.xpath("//*[@id=\"menuTree\"]/div/div[4]/div[3]/div/span[2]/a")).click();
        Thread.sleep(2000);
        driver.switchTo().defaultContent();
        Thread.sleep(2000);
        driver.switchTo().frame(driver.findElement(By.xpath("//*[@id=\"mainFrame\"]")));
        Thread.sleep(2000);
        driver.findElement(By.xpath("/html/body/div/table/tbody/tr[2]/td[2]/div/table/tbody/tr[2]/td/input[1]")).click();
        Thread.sleep(2000);
        driver.findElement(By.xpath("/html/body/div/table/tbody/tr[2]/td[2]/div/table/tbody/tr[2]/td/input[1]")).sendKeys("22");
        Thread.sleep(2000);
        driver.findElement(By.xpath("/html/body/div/table/tbody/tr[2]/td[2]/div/table/tbody/tr[2]/td/input[3]")).click();
        Thread.sleep(2000);
        
        driver.switchTo().defaultContent();
        Thread.sleep(2000);
        driver.switchTo().frame(driver.findElement(By.xpath("//*[@id=\"topFrame\"]")));
        Thread.sleep(2000);
        driver.findElement(By.xpath("//*[@id=\"HyperLink3\"]")).click();
        Thread.sleep(2000);
        driver.quit();

4:百度

driver.get("https://www.baidu.com/");
    	Thread.sleep(3000);
    	
    	driver.manage().window().maximize();
    	
    	driver.findElement(By.xpath("//*[@id=\"kw\"]")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"kw\"]")).sendKeys("Web测试");
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"kw\"]")).sendKeys(Keys.ENTER);
    	Thread.sleep(3000);
    	
    	Actions action = new Actions(driver);
    	action.moveToElement(driver.findElement(By.xpath("//*[@id=\"u\"]/a[2]"))).release().build().perform();
    	driver.findElement(By.xpath("//*[@id=\"u\"]/a[2]")).click();
    	WebDriverWait wait = new WebDriverWait(driver,6);
    	wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("#u > div.bdpfmenu > a.setpref")));
    	Thread.sleep(2000);
    	driver.findElement(By.cssSelector("#u > div.bdpfmenu > a.setpref")).click();
    	Thread.sleep(2000);
    	
    	driver.findElement(By.xpath("//*[@id=\"nr_3\"]")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"se-setting-7\"]/a[2]")).click();
    	Thread.sleep(2000);
    	
    	driver.switchTo().alert().accept();
    	Thread.sleep(2000);
    	
    	driver.findElement(By.xpath("//*[@id=\"kw\"]")).sendKeys(Keys.ALT,Keys.HOME);
    	Thread.sleep(2000);
    	
    	driver.close();
    	Thread.sleep(2000);

5:抖音

import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.interactions.ClickAction;

import com.gargoylesoftware.htmlunit.javascript.host.Set;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.By;

public class Example {

    // Mooctest Selenium Example


    // <!> Check if selenium-standalone.jar is added to build path.

    public static void test(WebDriver driver) throws InterruptedException {
        // TODO Test script
        // eg:driver.get("https://www.baidu.com/")
        // eg:driver.findElement(By.id("wd"));
//    	打开网址
    	driver.get("https://www.douyin.com/");
    	Thread.sleep(6000);
    	
//    	关闭登录提示
    	driver.findElement(By.xpath("//*[@id=\"login-guide\"]/i")).click();
    	Thread.sleep(1500);
    	
//    	点击主屏幕取消提示窗口 
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[2]/div[1]/div/div/div/div[2]/div/div[1]/div[2]")).click();
    	Thread.sleep(1500);
    	
//    	点击主屏幕进行暂停
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[2]/div[1]/div/div/div/div[2]/div/div[1]/div[2]")).click();
    	Thread.sleep(1500);
    	
//    	选择自动播放模式 
//    	Actions action = new Actions(driver);
//    	action.moveToElement(driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[2]/div[1]/div/div/div/div[2]/div/div[1]/div[2]/div/div[1]/div[1]/div/div[2]/div[1]/xg-controls/xg-inner-controls/xg-center-grid"))).perform();
//    	Thread.sleep(1000);
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[2]/div[1]/div/div/div/div[2]/div/div[1]/div[2]/div/div[1]/div[1]/div/div[2]/div[1]/xg-controls/xg-inner-controls/xg-right-grid/xg-icon[7]/div/div/button")).click();
    	Thread.sleep(2000);
    	
//    	关闭声音 
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[2]/div[1]/div/div/div/div[2]/div/div[1]/div[2]/div/div[1]/div[1]/div/div[2]/div[1]/xg-controls/xg-inner-controls/xg-right-grid/xg-icon[3]")).click();
    	Thread.sleep(1500);
    	
//    	点赞,手动登录
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[2]/div[1]/div/div/div/div[2]/div/div[1]/div[2]/div/div[1]/div[1]/div/div[2]/div[3]/div[2]/div[2]/div/div[1]/div[2]")).click();
    	Thread.sleep(8000);
    	
//    	点击评论 
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[2]/div[1]/div/div/div/div[2]/div/div[1]/div[2]/div/div[1]/div[1]/div/div[2]/div[3]/div[2]/div[3]")).click();
    	Thread.sleep(1500);
    	
//    	添加表情[呲牙]
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[2]/div[1]/div/div/div/div[2]/div/div[1]/div[2]/div/div[2]/div[1]/div[3]/div/div/div[2]/div/span[2]")).click();
    	Thread.sleep(1500);
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[2]/div[1]/div/div/div/div[2]/div/div[1]/div[2]/div/div[2]/div[1]/div[3]/div/div/div[3]/div[1]/div/span[17]/img")).click();
    	Thread.sleep(1500);
    	
//    	添加文本“精彩”
    	driver.findElement(By.cssSelector("#root > div.windows-os > div:nth-child(2) > div._161467dd88ebd09e4bdde965d497e16c-scss > div > div > div > div.swiper-container.swiper-container-initialized.swiper-container-vertical.swiper-container-autoheight.cf66e969dfb8e3e98298eaa4fbffed08-scss.container > div > div.swiper-slide.efdac201e599ede3484e970a6cbd9b76-scss.swiper-slide-active > div._344d64e1e8f9519151a9d9b713c105f5-scss > div > div.fedc0635517631086a25c96119ea1f7d-scss > div:nth-child(1) > div.c94217b49db9168d7907290fb9b58a75-scss > div > div > div._3fc7b84407d92fee9b3525bd6207ecc6-scss > div")).click();
    	Thread.sleep(1500);
    	driver.findElement(By.cssSelector("#root > div.windows-os > div:nth-child(2) > div._161467dd88ebd09e4bdde965d497e16c-scss > div > div > div > div.swiper-container.swiper-container-initialized.swiper-container-vertical.swiper-container-autoheight.cf66e969dfb8e3e98298eaa4fbffed08-scss.container > div > div.swiper-slide.efdac201e599ede3484e970a6cbd9b76-scss.swiper-slide-active > div._344d64e1e8f9519151a9d9b713c105f5-scss > div > div.fedc0635517631086a25c96119ea1f7d-scss > div:nth-child(1) > div.c94217b49db9168d7907290fb9b58a75-scss > div > div > div._3fc7b84407d92fee9b3525bd6207ecc6-scss > div > div > div.DraftEditor-editorContainer > div > div > div > div")).sendKeys("精彩");
    	Thread.sleep(1500);
    	
//    	点击发送
//    	//*[@id="root"]/div[1]/div[2]/div[1]/div/div/div/div[2]/div/div[2]/div[2]/div/div[2]/div[1]/div[3]/div/div/div[2]/div/span[3]/svg/path
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[2]/div[1]/div/div/div/div[2]/div/div[1]/div[2]/div/div[2]/div[1]/div[3]/div/div/div[2]/div/span[3]")).click();
    	Thread.sleep(1500);
    	driver.findElement(By.cssSelector("#root > div.windows-os > div:nth-child(2) > div._161467dd88ebd09e4bdde965d497e16c-scss > div > div > div > div.swiper-container.swiper-container-initialized.swiper-container-vertical.swiper-container-autoheight.cf66e969dfb8e3e98298eaa4fbffed08-scss.container > div > div.swiper-slide.swiper-slide-active.efdac201e599ede3484e970a6cbd9b76-scss > div._344d64e1e8f9519151a9d9b713c105f5-scss > div > div.fedc0635517631086a25c96119ea1f7d-scss > div:nth-child(1) > div._5fe60b6e60b030257d9f73a142a25003-scss > svg")).click();
    	Thread.sleep(3000);
    	
//    	点击下一个
    	driver.findElement(By.cssSelector("#root > div.windows-os > div:nth-child(2) > div._161467dd88ebd09e4bdde965d497e16c-scss > div > div > div > div.swiper-container.swiper-container-initialized.swiper-container-vertical.swiper-container-autoheight.cf66e969dfb8e3e98298eaa4fbffed08-scss.container > div > div.swiper-slide.swiper-slide-active.efdac201e599ede3484e970a6cbd9b76-scss > div._344d64e1e8f9519151a9d9b713c105f5-scss > div > div._6b30df93879834f73e6edc1289c8a3cb-scss.playerContainer.a2f7d80ebe5c71e43f85b4def618d62a-scss > div._721fe39b93f5d24f13df807c5d5f2833-scss.slider-video > div > div.videoContainer.xgplayer-container-inactive > div.fc298bb699bde7f9f34051fdfab4d7cd-scss > div.xgplayer-playswitch > div > div > div.xgplayer-playswitch-next")).click();
    	Thread.sleep(2000);
    	
//    	对左侧菜单下半部分的所有控件进行点击操作(即直播下的所有控件)
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[2]/div[2]/div/div[1]/div/div/div[5]/a")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[2]/div[2]/div/div[1]/div/div/div[7]/a")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[2]/div[2]/div/div[1]/div/div/div[9]/a")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[2]/div[2]/div/div[1]/div/div/div[10]/a")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[2]/div[2]/div/div[1]/div/div/div[11]/a")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[2]/div[2]/div/div[1]/div/div/div[12]/a")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[2]/div[2]/div/div[1]/div/div/div[13]/a")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[2]/div[2]/div/div[1]/div/div/div[14]/a")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[2]/div[2]/div/div[1]/div/div/div[15]/a")).click();
    	Thread.sleep(2000);
    	
//    	点击首页
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[2]/div[2]/div/div[1]/div/div/div[1]/a")).click();
    	Thread.sleep(2000);
    	
//    	点击进入第一个视频
    	String handle1 = driver.getWindowHandle();
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[2]/div[1]/div[2]/ul/li[1]/div/a[1]")).click();
    	Thread.sleep(2000);
    	
//    	点击主屏幕修改视频状态
    	java.util.Set<String> handles = driver.getWindowHandles();
    	for(String handle : handles){
    		if(!handle.equals(handle1)){
    	    		driver.switchTo().window(handle);
    	    		System.out.println(handle);
    	    		break;
    	    	}
    	}
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[2]/div/div[1]/div[1]/div[1]/div/div[1]/div[2]/div[3]/div")).click();
    	Thread.sleep(2000);
    	
//    	修改自动播放状态 
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[2]/div/div[1]/div[1]/div[1]/div/div[1]/div[2]/div[2]/xg-controls/xg-inner-controls/xg-right-grid/xg-icon[7]/div/div/button")).click();
    	Thread.sleep(2000);
    	
//    	点击头像
    	String handle2 = driver.getWindowHandle();
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[2]/div/div[2]/div/div[1]/div[1]/a/div/img")).click();
    	Thread.sleep(2000);
    	
//    	点击关注
    	handles = driver.getWindowHandles();
    	for(String handle : handles){
    		if(!handle.equals(handle1)&&!handle.equals(handle2)){
    	    		driver.switchTo().window(handle);
    	    		System.out.println(handle);
    	    		break;
    	    	}
    	}
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[2]/div/div[2]/div[1]/div[3]/button")).click();
    	Thread.sleep(2000);
    	
//    	点击抖音图标
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[1]/div/header/div[1]/a")).click();
    	Thread.sleep(2000);
    	
//    	在文本框中输入“央视”
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[1]/div/header/div[2]/div/div[1]/div/div[2]/div/form/input[1]")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[1]/div/header/div[2]/div/div[1]/div/div[2]/div/form/input[1]")).sendKeys("央视");
    	Thread.sleep(2000);
    	String handle3 = driver.getWindowHandle();
    	
    	
//    	点击搜索
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div[1]/div[1]/div/header/div[2]/div/div[1]/div/div[2]/div/button")).click();
    	Thread.sleep(2000);
    	java.util.Set<String> handles = driver.getWindowHandles();
    	for(String handle : handles){
//    		if(!handle.equals(handle1)&&!handle.equals(handle2)&&!handle.equals(handle3)){
    			if(!handle.equals(handle3)){
    	    		driver.switchTo().window(handle);
    	    		System.out.println(handle);
    	    		break;
    	    	}
    	}
    	Thread.sleep(2000);
    	
//    	筛选“最新发布”、“一周内”
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div/div[2]/div/div[2]/div[1]/div/div[2]/span[2]")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div/div[2]/div/div[2]/div[1]/div/div[3]/span[3]")).click();
    	Thread.sleep(2000);
//    	点击第三个视频的文本进入视频详情页
    	String handle4 = driver.getWindowHandle();
    	driver.findElement(By.xpath("//*[@id=\"root\"]/div/div[2]/div/div[2]/div[2]/ul/li[3]/div/a[1]")).click();
    	Thread.sleep(2000);
    	handles = driver.getWindowHandles();
    	for(String handle : handles){
//    		if(!handle.equals(handle1)&&!handle.equals(handle2)&&!handle.equals(handle3)&&!handle.equals(handle4)){
    			if(!handle.equals(handle3)&&!handle.equals(handle4)){
    	    		driver.switchTo().window(handle);
    	    		System.out.println(handle);
    	    		break;
    	    	}
    	}
    	Thread.sleep(4000);
    	System.out.println("1111");
//    	点击跳转到右侧第二个视频
    	driver.findElement(By.cssSelector("._7a161db40dc91a5e9612ebc02b3c05b2-scss > div:nth-child(1) > div:nth-child(3) > ul:nth-child(2) > li:nth-child(2) > div:nth-child(1) > div:nth-child(1) > a:nth-child(1)")).click();
    	Thread.sleep(2000);
    	
//    	点击抖音
    	driver.findElement(By.xpath("/html/body/div[1]/div[1]/div[1]/div/header/div[1]/a")).click();
    	Thread.sleep(2000);
    	
//    	点击关注
    	driver.findElement(By.cssSelector("div._45271e7d56555c56f364c35418b5aa47-scss:nth-child(1)")).click();
    	Thread.sleep(2000);
    	
//    	点击头像查看作者视频
    	driver.findElement(By.cssSelector(".a244f53718e15ba220bcbf9215ce966e-scss > div:nth-child(1) > img:nth-child(1)")).click();
    	Thread.sleep(2000);
    	
//    	点击进入详情
    	driver.findElement(By.cssSelector("svg._97a0d9ff8c695b459d00db736a368fec-scss:nth-child(2)")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.cssSelector("a.xgplayer-icon")).click();
    	Thread.sleep(2000);
    	
    	driver.quit();
    	
    }

    public static void main(String[] args) {
        // Run main function to test your script.
        WebDriver driver = new ChromeDriver();
        try { test(driver); } 
        catch(Exception e) { e.printStackTrace(); }
        finally { driver.quit(); }
    }

}

6:美团

driver.get("https://nj.meituan.com/");
    	Thread.sleep(3000);
    	
    	driver.findElement(By.xpath("//*[@id=\"main\"]/header/div[1]/div/div/a")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"react\"]/div/div[2]/p/a[9]")).click();
    	
    	driver.manage().window().maximize();
    	
    	String handle1 = driver.getWindowHandle();
    	System.out.println(handle1);
    	Thread.sleep(1000);
    	
//    	WebDriverWait wait = new WebDriverWait(driver, 12);
//    	wait.until(ExpectedConditions.invisibilityOfElementLocated(By.cssSelector("#banner-slider > div.slider-content.clearfix > div:nth-child(1) > a > div")));
//    	WebElement element = driver.findElement(By.cssSelector("#banner-slider > div.slider-content.clearfix > div:nth-child(1) > a > div"));
//    	JavascriptExecutor jExecutor1 = (JavascriptExecutor)driver;
//    	jExecutor1.executeScript("document.getElementsByClassName(\"slider-img-div\")[0].click()");
    	
    	driver.findElement(By.xpath("//*[@id=\"banner-slider\"]/div[1]/div[1]/a")).click();
    	Thread.sleep(2000);
    	
    	java.util.Set<String> handles = driver.getWindowHandles();
    	for(String handle : handles){
    		if(!handle.equals(handle1)){
    			driver.switchTo().window(handle);
    			System.out.println(handle);
    			break;
    		}
    	}
    	Thread.sleep(3000);
    	
    	driver.findElement(By.className("growth-entry")).click();
    	Thread.sleep(2000);
    	
    	driver.findElement(By.xpath("//*[@id=\"login-email\"]")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"login-email\"]")).sendKeys("13107385576");
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"login-password\"]")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"login-password\"]")).sendKeys("A15973875459");
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"user-agreement-wrap-text-circle\"]/i")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"J-normal-form\"]/div[5]/input[5]")).click();
    	Thread.sleep(3000);
    	
    	JavascriptExecutor jExecutor = (JavascriptExecutor)driver;
    	jExecutor.executeScript("document.getElementsByClassName(\"dp-input\")[0].removeAttribute(\"readonly\")");
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"search-header-placeholder\"]/div/div/div[2]/div[1]/div[1]/input")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"search-header-placeholder\"]/div/div/div[2]/div[1]/div[1]/input")).clear();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"search-header-placeholder\"]/div/div/div[2]/div[1]/div[1]/input")).sendKeys("2022-7-4");
    	Thread.sleep(2000);
    	jExecutor.executeScript("document.getElementsByClassName(\"dp-input\")[3].removeAttribute(\"readonly\")");
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"search-header-placeholder\"]/div/div/div[2]/div[2]/div[1]/input")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"search-header-placeholder\"]/div/div/div[2]/div[2]/div[1]/input")).clear();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"search-header-placeholder\"]/div/div/div[2]/div[2]/div[1]/input")).sendKeys("2022-7-6");
    	Thread.sleep(2000);
    	
    	driver.findElement(By.xpath("//*[@id=\"app\"]/section/section/div[2]/div[1]/div[1]/div[2]/a")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"app\"]/section/section/div[2]/div[2]/div/div[3]/span[3]/a/label")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"app\"]/section/section/div[2]/div[3]/div/div[4]/span")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"app\"]/section/section/div[2]/div[3]/div/div[3]/span[8]/a/label")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"app\"]/section/section/div[2]/div[4]/div/div[2]/a")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"app\"]/section/section/div[2]/div[2]/div/div[3]/span[3]/a/label")).click();
    	Thread.sleep(2000);

7:医疗管理系统

driver.get("http://114.215.176.95:60511/Graduate/login.jsp");
    	Thread.sleep(2000);
    	
    	//11 16
    	driver.findElement(By.xpath("/html/body/div[2]/div/div/form/div/div[2]/div[1]/div/input")).sendKeys("adda");
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div[2]/div/div/form/div/div[2]/div[2]/div/input")).sendKeys("123");;
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div[2]/div/div/form/div/div[2]/div[3]/label[2]/input")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div[2]/div/div/form/div/div[3]/input")).click();
    	Thread.sleep(3000);

    	//22 20
    	//添加科室
    	driver.findElement(By.xpath("/html/body/div[2]/ul[1]/li[1]/a")).click();
    	Thread.sleep(2000);
//    	//切换iframe
    	driver.switchTo().frame(driver.findElement(By.xpath("/html/body/div[3]/iframe")));
    	
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[1]/div[2]/input")).click();
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[1]/div[2]/input")).sendKeys("250");
    	//编号
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[2]/div[2]/input")).click();
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[2]/div[2]/input")).sendKeys("心血管科");
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[3]/div[2]/textarea")).click();
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[3]/div[2]/textarea")).sendKeys("治疗心血管疾病");
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[4]/div[2]/button")).click();
    	Thread.sleep(2000);
    	
    	//33 16
    	driver.switchTo().defaultContent();
    	driver.findElement(By.xpath("/html/body/div[2]/ul[1]/li[2]/a")).click();
    	Thread.sleep(2000);
    	driver.switchTo().frame(driver.findElement(By.xpath("/html/body/div[3]/iframe")));
    	driver.findElement(By.xpath("//*[@id=\"s_istop\"]")).click();
    	Thread.sleep(2000);
        //选编号
    	driver.findElement(By.xpath("//*[@id=\"s_istop\"]/option[1]")).click();  	
    	Thread.sleep(2000);
    	//编号
    	driver.findElement(By.xpath("//*[@id=\"keywords\"]")).click();
    	driver.findElement(By.xpath("//*[@id=\"keywords\"]")).sendKeys("131");
    	Thread.sleep(2000);
    	//搜索
    	driver.findElement(By.xpath("/html/body/div/div[2]/a")).click();
    	Thread.sleep(2000);
    	
    	//44
        //修改
    	driver.findElement(By.xpath("/html/body/div/table/tbody/tr[2]/td[4]/div/a[1]/span")).click();
    	Thread.sleep(2000);
//    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[3]/div[2]/textarea")).clear();
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[3]/div[2]/textarea")).sendKeys("666医生");
    	Thread.sleep(2000);
    	//提交
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[4]/div[2]/button")).click();
    	Thread.sleep(2000);
    	
    	//55
    	driver.switchTo().defaultContent();
    	Thread.sleep(1000);
    	//医生管理
    	driver.findElement(By.xpath("/html/body/div[2]/h2[2]")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div[2]/ul[2]/li[1]/a")).click();
    	//添加医生
    	driver.switchTo().frame(driver.findElement(By.xpath("/html/body/div[3]/iframe")));
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[1]/div[2]/input")).click();
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[1]/div[2]/input")).sendKeys("973");
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[3]/div[2]/input")).click();
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[3]/div[2]/input")).sendKeys("吴有已");
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[4]/div[2]/input")).click();
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[4]/div[2]/input")).sendKeys("170034");
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[5]/div[2]/select")).click();
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[5]/div[2]/select/option[64]")).click();
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[6]/div[2]/textarea")).click();
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[6]/div[2]/textarea")).sendKeys("专治耳鼻喉");
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[7]/div[2]/input")).click();
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[7]/div[2]/input")).sendKeys("主治");
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[8]/div[2]/input")).click();
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[8]/div[2]/input")).sendKeys("16798431223");
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[9]/div[2]/input")).click();
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[9]/div[2]/input")).sendKeys("278865447@qq.com");
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[10]/button")).click();
    	Thread.sleep(2000);
    	
    	//66
    	driver.switchTo().defaultContent();
    	driver.findElement(By.xpath("/html/body/div[2]/ul[2]/li[2]/a")).click();
    	Thread.sleep(2000);
    	
    	driver.switchTo().frame(driver.findElement(By.xpath("/html/body/div[3]/iframe")));
    	driver.findElement(By.xpath("/html/body/div/select")).click();
    	driver.findElement(By.xpath("/html/body/div/select/option[3]")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div/input")).click();
    	driver.findElement(By.xpath("/html/body/div/input")).sendKeys("1235");
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div/a")).click();
    	
    	//77
    	//修改
    	driver.findElement(By.xpath("/html/body/table/tbody/tr[2]/td[7]/div/a[1]")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[4]/div[2]/textarea")).clear();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[4]/div[2]/textarea")).sendKeys("副主任医生");
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("/html/body/div/div[2]/form/div[8]/button")).click();//提交
    	Thread.sleep(2000);
    	
    	//88
    	//退出
    	driver.switchTo().defaultContent();
    	Thread.sleep(1000);
    	driver.findElement(By.xpath("/html/body/div[1]/div[2]/a[2]")).click();
    	Thread.sleep(2000);

8:中国铁路文章来源地址https://www.toymoban.com/news/detail-737545.html

driver.get("https://kyfw.12306.cn/otn/leftTicket/init?linktypeid");
    	Thread.sleep(3000);

    	driver.findElement(By.xpath("//*[@id=\"fromStationText\"]")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"ul_list1\"]/li[21]")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"toStationText\"]")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"ul_list1\"]/li[2]")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"date_icon_1\"]")).click();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"train_date\"]")).clear();
    	Thread.sleep(2000);
    	driver.findElement(By.xpath("//*[@id=\"train_date\"]")).sendKeys("2021-10-28");
    	Thread.sleep(2000);
    	
    	driver.findElement(By.xpath("//*[@id=\"query_ticket\"]")).click();
    	Thread.sleep(2000);
    	
    	driver.close();

到了这里,关于全国大学生软件测试大赛Web应用大赛训练题功能测试脚本的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • “新华三杯”全国大学生数字技术大赛预选赛备考资料

    新华三杯第十三届全国大学生数字技术大赛定为2023的4月到2024年的5月期间举行 大赛分为本科组与职业组,包含省预赛、省复赛和全国决赛。预赛、复赛为个人赛,决赛包含个人赛和团队赛 省预赛 的难度在H3CNE级别,这里没说具体方向,按照2022年新华三就是包含, 计算机网

    2024年02月07日
    浏览(110)
  • 全国大学生“高教杯“成图大赛:关于蜗轮蜗杆快速建模研究(二)

    前言 成图大赛全名为:“高教杯”全国大学生先进成图技术与产品信息建模创新大赛,是机械类全国大学生比赛制图类的最高等级比赛。目前已历经十四届。而机械类计算机建模的赛题,目前已相对固定,每届会出现比较固定的零件,例如:齿轮齿条,蜗轮蜗杆,轴类零件等

    2023年04月12日
    浏览(40)
  • 全国大学生智能汽车大赛(二):电感采样、卡尔曼滤波、方向控制代码

    全国大学生智能汽车大赛(一):摄像头识别赛道代码 全国大学生智能汽车大赛(二):电感采样、卡尔曼滤波、方向控制代码 全国大学生智能汽车大赛(三):上下位机通信协议及代码 🥳👹以下为正文😶‍🌫️🥸 摄像头: 8个数据口,一个串口,两eru中断        

    2024年02月02日
    浏览(47)
  • “古剑山”第一届全国大学生网络攻防大赛初赛(Web部分复盘)

    Web 1、Web | upload_2_shell  参考:SUCTF的一些题解 - SecPulse.COM | 安全脉搏 BUU WEB [SUCTF 2019]EasyWeb_buu easy_web-CSDN博客  但这道题使用的是.htaccess解析 .htaccess: 这段文本似乎涉及一个安全问题,即上传恶意文件并利用服务器配置的漏洞来执行远程代码(RCE)。这里的.htaccess文件被用来重

    2024年02月05日
    浏览(49)
  • 【电子设计大赛】2023 年全国大学生电子设计竞赛 仪器和主要元器件清单

    1. 仪器设备清单 直流稳压电源(具有恒流/恒压模式自动切换功能,0~30V/3A,双路) 数字示波器(100MHz, 双通道) 函数发生器(50 MHz,双通道) 射频信号源(500MHz,-100dBm~0dBm,具有射频输出开关功能) 矢量网络分析仪(1GHz) 频谱分析仪(1GHz) 频率计(500MHz) 功率分析仪

    2024年02月15日
    浏览(91)
  • [wp]“古剑山”第一届全国大学生网络攻防大赛 Web部分wp

    群友说是原题杯 哈哈哈哈 我也不懂 我比赛打的少  Web | unse 源码: 先伪协议读取test.php 然后得到反序列化源码: a中的$this-a触发bgood中的__toString方法,将$this-a赋值为new bfun()。 bdun中的$items[‘dd’]触发cfun中的__get函数,给$items[‘dd’]赋值为new cfun()。 最后让cdun中的$params[‘

    2024年02月04日
    浏览(54)
  • [第七届蓝帽杯全国大学生网络安全技能大赛 蓝帽杯 2023]——Web方向部分题 详细Writeup

    你真的熟悉PHP吗? 源码如下 首先要先解决传参 my_secret.flag 根据php解析特性,如果字符串中存在 [、. 等符号,php会将其转换为 _ 且只转换一次 ,因此我们直接构造 my_secret.flag 的话,最后php执行的是 my_secret_flag ,因此我们将前面的 _ 用 [ 代替,也就是传参的时候传参为 my[s

    2024年02月10日
    浏览(43)
  • 2019年全国大学生电子设计大学(D 题)简易电路特性测试仪(2)基础部分电路与代码

    先看基础部分第一问,首先经过测试,我的共射放大电路的放大倍数是280左右(分立元件每个人都不一样),选择放大倍数越小的三极管越好做(1)中有作解释。 输入电阻 DDS输出的正弦波幅值为1.1v,经过分压后,串联一个电阻,根据公式计算即可得出。电路图如下:    

    2024年02月14日
    浏览(49)
  • 2022全国职业院校技能大赛软件测试赛项解析

    随着时间的流逝,2022的赛项规程和赛项赛题也在3月24号全部官网发布了,看了下其他的赛项赛项组委会今年改革真的狠要求每个赛项公布十套题,看着软测赛项又有无力吐槽点都是看到第一眼都是懵的(公布的试题练习只有软测每次都是这样,自己去赛项规程和赛项试题去寻

    2023年04月09日
    浏览(45)
  • 2017年全国大学生电子设计竞赛综合测评题

    题目如下: 题目要求电源只能使用5V单电源、给运放使用5V单电源供电。 方波发生电路 有点像梯形是因为multisim上的LM324跟不上变化的速度,使用题目中的AD2302即可。 输出为接近5V的方波,使用滑动变阻器分压。 四分频 74LS74中包含俩个D触发器,二分频电路如下,从CLK出输入

    2023年04月15日
    浏览(49)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包