automated-tests

pybuilder and pytest: cannot import source code when running tests

北战南征 提交于 2019-12-25 04:38:32
问题 so i have a project: <root> |- src |-main |-python |-data_merger |- common |- constans |- controller |- resources |- rest |-tests |-unittest |-integrationtest data_merger is marked as root (I am using Pycharm). This is part of my build file: @init def set_properties(project): project.set_property("dir_source_main_python", r"src\main\python\data_merger") project.set_property("dir_source_integrationtest_python", r"src\tests\integrationtest") project.set_property("dir_source_unittest_python", r

Autoit and notepad

≯℡__Kan透↙ 提交于 2019-12-25 04:26:10
问题 I have an application, wherein I get a "Save As" dialog-box. At times, if a file exists with the same name, then another dialog box comes in, with the same name "Save As". The following is the code, which I wrote but it doesn't work as expected. Global $sTitle = "Save As" WinWait($sTitle) WinWaitActive($sTitle) ControlClick($sTitle, "Save", "[CLASS:Button; TEXT:&Save; INSTANCE:2]") ControlSetText($sTitle, "", "CLASS:Button; INSTANCE:2]", $file_name) SendKeepActive($sTitle) Send("{ENTER}")

Why are breakpoints in tests not hit?

左心房为你撑大大i 提交于 2019-12-25 03:55:23
问题 I have several NUnit tests in a test project that is part of a solution. I have a breakpoint in each test method. A "typical" one of these methods is: public void TestHHSInterface() { var HHSClient = IOC.container.Resolve<IHHSClient>(); var s = HHSClient.GetTestMessage("Duckbilled", "Platypus"); Assert.Greater(s.Value.Length, 0); } The tests run, as evidenced by what I see here: Is this normal that breakpoints are not hit? It seems that they are running, but that the results (passed 3, failed

Which is the most comprehensive browser compatibility testing tool?

允我心安 提交于 2019-12-25 03:35:16
问题 An ideal one would be where I could: Test my JS live, not just see screenshots Test in multiple browsers in multiple OSes Test under various resolutions Test in different mobile platforms I know that's too much to ask for, but which one gets closest? 回答1: The two that spring immediately to mind are: http://browsershots.org/ http://deviceanywhere.com/ 回答2: You can use Selenium RC or Selenium 2 (WebDriver) for automated cross-browser testing as well as different platform. Selenium WebDriver is

Are there any free/open-source WCF client frameworks/libraries out there?

隐身守侯 提交于 2019-12-25 02:47:29
问题 I am working on a tool that will test the server of a Silverlight application. AFAIK, Silverlight uses WCF to communicate with the server. I am curious if here are any free tools out there that can enable to write test scripts that test the server via WCF, preferably in Java, Python, Ruby or anything that does not require .NET. 回答1: Take a look at WCFStorm, haven't used it yet myself but it seems ok. Of course, it's a tool not a library, and it uses .Net (as it's the most logical choice for a

TFS Prem Release No test assemblies found matching the pattern: **\*UITests*.dll,!**\obj\

﹥>﹥吖頭↗ 提交于 2019-12-25 01:35:20
问题 I am trying to trigger tests to occur on our development environments servers. The tests do get performed on the build server, which has the Build Agent and Test Agent. On Our development server I have installed Test Agent I found this line [command]powershell NonInteractive -ExecutionPolicy Unrestricted -file D:\TFSVSOWork_tasks So I copied that directory to the development server as it didn't exist. installed Chrome I see in the log is 2019-07-11T20:11:46.5428863Z ##[section]Starting:

Test automation of Aptana (Eclipse) GUI

坚强是说给别人听的谎言 提交于 2019-12-24 21:39:01
问题 I m looking for a tool able to automate tests for Aptana Studio's GUI. Google was not too helpful in this case. Thanks, Shakov 回答1: You are looking to automate the SWT GUI (SWT is the UI foundations of Eclipse). Google the term "SWT test automation" and see what comes up. I know companies that use QF Test. It is an expensive option, but I know that it works well. Another option is to use SWT Bot which is free. Last week I also came across this very very cool project that can automate pretty

Serenity BDD dont delete Browser Memory

时间秒杀一切 提交于 2019-12-24 21:17:36
问题 @Managed(uniqueSession = true, clearCookies = Never) I have a serenity app that has a Oauth login mechanism using the Microsoft login. I am using the above code to make browser retain browser's memory. What I want to happened is I have a test to Login using the Microsoft Oauth. Then Have another test that will open the dashboard. Since the previous test already log in. I am hoping that Opening the dashboard of the app should be pass. Unfortunately when I access the dashboard. The test will

AngularJS testing with Protractor- Cannot read property 'click()' of undefined, even though 'undefined' element has already been used

本小妞迷上赌 提交于 2019-12-24 20:37:07
问题 I am developing a test suite for an AngularJS app, and have hit a strange problem while writing one of the test scripts which I can't seem to work out. The test is: it('should navigate to the Charts page', function() { console.log("Start Charts page test"); browser.waitForAngularEnabled(false); browser.wait(EC.elementToBeClickable(chartsMenuBtn), 5000).then( browser.actions(). mouseMove(chartsMenuBtn). chartsMenuBtn.click(). browser.wait(EC.urlIs(site + '/#/charts'), 5000). perform() ); })

selenium grid is not starting more than 5 sessions

[亡魂溺海] 提交于 2019-12-24 20:03:04
问题 I have done grid setup as follows: Hub: iMAC Started with: java -jar Downloads/selenium-server-standalone-2.52.0.jar -port 4444 -role hub Node1: Win8 system Started with: java -Dwebdriver.chrome.driver=chromedriver.exe -jar selenium-server-standalone-2.52.0.jar -role webdriver -hub http://192.168.1.103:4444/grid/register -nodeConfig Node1.json Node2: Win10 system Started with: java -Dwebdriver.chrome.driver=chromedriver.exe -jar selenium-server-standalone-2.52.0.jar -role webdriver -hub http: