Giter VIP home page Giter VIP logo

Comments (10)

vwin avatar vwin commented on May 11, 2024

通过mvn spring:boot run 运行成功~
第二个问题是:找不到结果报告~实际在配置的目录下有对应的csv文件以及index.html等,但是文件路径不对

from stresstestplatform.

zyanycall avatar zyanycall commented on May 11, 2024

第一个问题:
查了一下,是找不到class:Caused by: java.lang.NoClassDefFoundError: javax/servlet/ServletContext
实际,这个类是spring-boot-starter-web 中带的,如下图。
image
这个问题应该不是我的代码问题,希望你检查一下环境,检查一下这些引用是否都有了。

第二个问题:
你的文件路径是什么?代码去找的文件路径是什么?
你的环境是什么?这边有苹果的,win10,centOS的都成功了。

from stresstestplatform.

vwin avatar vwin commented on May 11, 2024

第一个问题解决了mvn spring-boot:run
第二个问题,我用的mac环境,
MASTER_JMETER_HOME_KEY配置:
/Users/wjh/jmeter/apache-jmeter-4.0
MASTER_JMETER_CASES_HOME_KEY配置是
/Users/wjh/jmeter/jmx
跑完测试后,看到测试报告的地址是:http://localhost:8080/renren-fast/testReport/20181105193228938/case20181105193228955/case201811051932289553673/index.html 这个路径没有找到

from stresstestplatform.

zyanycall avatar zyanycall commented on May 11, 2024

第一个问题解决了mvn spring-boot:run
第二个问题,我用的mac环境,
MASTER_JMETER_HOME_KEY配置:
/Users/wjh/jmeter/apache-jmeter-4.0
MASTER_JMETER_CASES_HOME_KEY配置是
/Users/wjh/jmeter/jmx
跑完测试后,看到测试报告的地址是:http://localhost:8080/renren-fast/testReport/20181105193228938/case20181105193228955/case201811051932289553673/index.html 这个路径没有找到

系统得到测试报告的路径也是拼接出来的,如下代码。
image
以你的描述,具体应该是:
/Users/wjh/jmeter/jmx/20181105193228938/case20181105193228955/case201811051932289553673/index.html

有这个文件吗?

from stresstestplatform.

vwin avatar vwin commented on May 11, 2024

实际上存在的文件路径是:/Users/wjh/jmeter/jmx/20181105193228938/case20181105193228955/case201811051932289553673

from stresstestplatform.

zyanycall avatar zyanycall commented on May 11, 2024

实际上存在的文件路径是:/Users/wjh/jmeter/jmx/20181105193228938/case20181105193228955/case201811051932289553673

这个目录下没有 index.html 文件吗 ?

from stresstestplatform.

vwin avatar vwin commented on May 11, 2024

有index.html

from stresstestplatform.

zyanycall avatar zyanycall commented on May 11, 2024

有index.html

那怎么能说找不到这个文件呢 …… 建议看看权限什么的。

from stresstestplatform.

vwin avatar vwin commented on May 11, 2024

好吧,我再研究研究3Q

from stresstestplatform.

zyanycall avatar zyanycall commented on May 11, 2024

好吧,我再研究研究3Q

多谢使用平台~
我自己是没有mac环境的,还希望多多发现问题。
Linux环境我是有的,是没问题的。

可能是用户权限不同(启动程序的用户和创建目录的用户),或者目录自身权限不同。
尝试一下手动查找文件是否成功。

再不行,建议调试代码看看,进一步核实路径是否正确。

from stresstestplatform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.