testing

Jmeter - Getting previous results in mail

血红的双手。 提交于 2020-01-30 12:52:10
问题 I'm using Jmeter - it runs automatically every 4 hours (through crontab). I'm sending the results file (csv) in the mail at the end of the test. I always see the file of the previous test, not the current one (I can see by the hour). the structure is this: one 'Test Plan' (I checked 'Run Thread Groups consecutively' and 'Run tearDown Thread Groups after shutdown of main threads), two 'Thread Groups' - which at the end of each I write results to csv file using 'View Results Tree', and at the

Django @override_settings does not allow dictionary?

♀尐吖头ヾ 提交于 2020-01-30 04:32:48
问题 I am new to Python decorators so perhaps I am missing something simple, here is my situation: This works for me: def test_something(self): settings.SETTING_DICT['key'] = True #no error ... But this throws a "SyntaxError: keyword can't be an expression": @override_settings(SETTING_DICT['key'] = True) #error def test_something(self): ... Just to be clear, normal use of override settings works: @override_settings(SETTING_VAR = True) #no error def test_something(self): ... Is there a way to use

selenium chrome driver select certificate popup confirmation not working

不问归期 提交于 2020-01-28 05:49:26
问题 I am automating tests using selenium chromewebdriver 3.7. Whenever I lauch the site, I get a certificate selection popup like the one below However I am not able to click on the OK button. These are the options I have tried //I have tried getWindowHandle like this String handle= driver.getWindowHandle(); this.driver.switchTo().window(handle); //I have alos tried switching and accept driver.switchTo().alert().accept(); //I have also tried to force the enter key like this robot.keyPress

Can't run Karma with Angular 1.4.9 with error angular.module(…).info is not a function

限于喜欢 提交于 2020-01-25 23:22:53
问题 When running karma start --single-run there is an error Chrome 62.0.3202 (Linux 0.0.0) ERROR Uncaught TypeError: angular.module(...).info is not a function at /home/ali/bedopedia/client/node_modules/angular-mocks/angular-mocks.js:80 When I opened anguler-mocks.js there is a function called info and it need angular 1.6 .info({ angularVersion: '1.6.6' }) here is package.json file "devDependencies": { "angular-mocks": "^1.6.0", "grunt": "^0.4.5", "grunt-jsmeter": "^0.3.1", "jasmine-core": "^2.5

ExtJS 5 Custom Theme Testing

岁酱吖の 提交于 2020-01-25 23:03:12
问题 I recently started to create custom theme for ExtJS 5 by Sencha. Following http://docs.sencha.com/extjs/5.0.0/core_concepts/theming.html I managed to create ThemeDemoApp, inherit ext-theme-neptune , change $base-color to green and refresh/rebuild ThemeDemoApp with my-custom-theme . All ok. My problem is, ThemeDemoApp is quite poor for testing a custom theme. A panel, tab, button and a modal window. That's it? After bit of googling I bumped into http://dev.sencha.com/ext/5.0.0/examples/themes

Test if email is send in Meteor Velocity

試著忘記壹切 提交于 2020-01-25 20:58:45
问题 Is it possible to confirm emails are being sent in Meteor Velocity tests? I thought I could just have a method in tests with the same name that override/duplicates the method, but that doesn't work. I tried this: In my regular code: Meteor.methods( email: (parameters) -> sendAnEmail(parameters) ) In tests : Meteor.methods( email: (parameters) -> differentBehaviorForTesting(parameters) # I could call some super() here if necessary ) But this always gets me a Error: A method named 'email' is

Test if email is send in Meteor Velocity

怎甘沉沦 提交于 2020-01-25 20:58:06
问题 Is it possible to confirm emails are being sent in Meteor Velocity tests? I thought I could just have a method in tests with the same name that override/duplicates the method, but that doesn't work. I tried this: In my regular code: Meteor.methods( email: (parameters) -> sendAnEmail(parameters) ) In tests : Meteor.methods( email: (parameters) -> differentBehaviorForTesting(parameters) # I could call some super() here if necessary ) But this always gets me a Error: A method named 'email' is

How to test for non-parametric silmultaneous inference in R [closed]

不羁的心 提交于 2020-01-25 10:42:43
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I would like to perform non-parametric testing for a dataframe. I have three groups A,B,C. I´d like to now the statistical significance between groups A/B, B/C and A/C. How can I do that non-parametrically? When applying Kruskal-Wallis-Test, I get the overall-inference between groups. This serves as protection

How to select elements with the same css selector

 ̄綄美尐妖づ 提交于 2020-01-25 09:28:04
问题 I have numerous elements in my ui tests that have the same css selector name but the issue I'm have is how to select each of them separately. I recall there was a way to add [1],[2] after each of them but i cant seem to make it work. I'm currently using "[data-qa-inning-value]"[1], "[data-qa-inning-value]"[2], etc but it is not picking it up, any help? It currently isn't picking anything up but I do remember there was a way to do it but I just cant find it in my notes 回答1: Ideally, you should

Setting Test environment variables in rails without putting in source code

你离开我真会死。 提交于 2020-01-25 08:42:07
问题 I'm using Twilio for an app and on production I set the auth token using heroku's CLI. I'm using sms-spec (https://github.com/monfresh/sms-spec) to test my app's Twilio integration locally. I want to set ENV['TWILIO_AUTH_TOKEN'] to my token in the test environment. I use guard to auto-run my tests whenever I make changes so I don't want to have to manually set the ENV variable each time I run tests. I also don't want to put the token in my source code for security reasons. Is there a way I