javascript - 数据驱动框架
问题描述
我在 Excel 中有 10 个测试用例,如果我为每个测试用例运行 Selenium,则应该上传一个文件并将结果写入同一个 Excel。有谁知道这是怎么做到的吗?我知道如何读取 Excel 文件,但对于一个测试用例,一个文件上传我不知道该怎么做。
File file = new File(filePath+"\\"+fileName);
//Create an object of FileInputStream class to read excel file
FileInputStream inputStream = new FileInputStream(file);
Workbook guru99Workbook = null;
//Find the file extension by splitting file name in substring and getting only extension name
String fileExtensionName = fileName.substring(fileName.indexOf("."));
解决方案
推荐阅读
- android - 模拟器没有在 Appium 框架中启动抛出 InvocationTargetExceptionMessage
- http - 如何使 Siddhi 基本身份验证工作
- css - 在整个一侧向 SVG 添加阴影
- javascript - 基于json响应的计算
- vba - On Cell Change程序突然停止工作VBA
- permissions - 允许 ASP.NET Core API 应用程序的写入权限
- nestjs - TypeORM AWS RDS 代理集成
- php - Wordpress 在单个帖子上显示自定义分类图像 - php
- java - 如何使 Spring ApplicationContext 可用于另一个类的单元测试?
- jquery - 如何永久更改切换菜单页面(WordPress)的 z-index 编号?