automated-tests

how to write dynamic excel file (number of column can exceed) into java objects using apache poi

时光怂恿深爱的人放手 提交于 2020-01-06 05:07:31
问题 I understand that we can create model class whose each instance variable will be bound to each excel column like below class emp{ String name; String empId; //getter and setter method of each } excel file: name | empid abc | 123 bcd | 3232 xyz | ee32 how to handle this case when number of column in excel increases dynamically 回答1: I would doing this using a kind of table model. A ExcelTableModel similar to the javax.swing.table.DefaultTableModel. Complete example showing a blueprint of this

CakePHP core tests not working on IIS

北城以北 提交于 2020-01-05 10:31:31
问题 I'm following the steps (from http://book.cakephp.org/2.0/en/development/testing.html) to set up Testing on a CakePHP install. Viewing the core tests is supposed to be as simple as appending /test.php to my application's URL. But when I do that, I get an error page, saying... Missing Controller Error: Test.phpController could not be found. Error: Create the class Test.phpController below in file: my-app\Controller\Test.phpController.php Obviously, "test.php" is supposed to be a real file, not

CakePHP core tests not working on IIS

ぐ巨炮叔叔 提交于 2020-01-05 10:31:30
问题 I'm following the steps (from http://book.cakephp.org/2.0/en/development/testing.html) to set up Testing on a CakePHP install. Viewing the core tests is supposed to be as simple as appending /test.php to my application's URL. But when I do that, I get an error page, saying... Missing Controller Error: Test.phpController could not be found. Error: Create the class Test.phpController below in file: my-app\Controller\Test.phpController.php Obviously, "test.php" is supposed to be a real file, not

Appium automation test: How to get element or text from custom UI in android [android.view.View]

别来无恙 提交于 2020-01-05 09:26:49
问题 I beginner test automation on Android by Appium. I use IUAtomatorviewer to get eLement from Android Application But i think my applicatoin is from customs UI. i see that is android.support.v7.widget.RecyclerView / android.view.View in [android.view.View] element, there no text or other informatoin i see it include TextView, Image... same a item in listview Here is my code AndroidElement el = driver.findElement(By.id(io.***.vodi:id/message_list_item_chat_id)); AndroidElement el2 =

Test Upload File In Selenium

好久不见. 提交于 2020-01-05 09:24:08
问题 Currently i wish to run selenium for test excel upload. And my coding didn't working as expected. Just wondering how to resolve it. Every time i run the automated testing my code will be stop at this step:sendKeys("C:\Users\user\Desktop\JSPL Style Excel Upload.csv") without any error message show. Any suggestion? @Before public void setUp() throws Exception { driver = new FirefoxDriver(); baseUrl = "http://localhost:7101/"; driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); }

How could I find an application window via it's ClassID?

徘徊边缘 提交于 2020-01-05 08:05:36
问题 I'm using White for test automation. I had created simple application test, which is tracking an application via it's dialog name. var appCalc = Application.AttachOrLaunch(new ProcessStartInfo("application.exe")); var wndCalc = appCalc.GetWindow("Dialog caption"); But this approach is unstable, because in different localisations, the caption could differ. How could i track my application, using it's ClassID? 回答1: var wndCalc = appCalc.GetWindow(SearchCriteria.ByNativeProperty

Selenium slow click action only localhost

喜欢而已 提交于 2020-01-05 06:43:28
问题 I am running selenium locally, but it is extremely slow on find and click. test_helper.rb Capybara.register_driver :selenium do |app| Capybara::Selenium::Driver.new(app, browser: :chrome) end This is a test on my page: feature "dashboard" do include Warden::Test::Helpers scenario "test1", :js => true do visit root_path visit new_user_session_path #any of this are super slow #find("a[href='#{/users/sign_up}']").click #page.find(:css, 'a[href="/users/passsword/new"]').click #page.find(:xpath, "

Making System.setProperty platform independent in a Maven Project for Selenium Tests

廉价感情. 提交于 2020-01-04 16:56:14
问题 I am currently creating selenium automation using webdriver in Maven using Java. Now for initializing the browsers such as Chrome and IE I have to set the system property such as System.setProperty("webdriver.chrome.driver", "F:\\somewhereintheworkingdir\\drivers\chromedriver.exe"); Now, my deliverable is in terms of JAR. I am using maven so this is currently under main>resources>drivers>chromedriver.exe So after package it will be unders root>drivers>chromedriver.exe So How to make the

In Appium Sendkeys didn't work as expected, it sends more than i give to it

自闭症网瘾萝莉.ら 提交于 2020-01-04 06:50:42
问题 I'm using Appium to write test cases of an Android application, when i tap the following code public void EnterQuantity() { wd.findElement(By.xpath("//android.widget.LinearLayout[1]/android.widget.FrameLayout[1]/android.widget.LinearLayout[1]/android.widget.FrameLayout[1]/android.widget.RelativeLayout[1]/android.widget.ScrollView[1]/android.widget.LinearLayout[1]/android.widget.LinearLayout[3]/android.widget.LinearLayout[3]/android.widget.LinearLayout[1]/android.widget.EditText[1]")).sendKeys

Eclipse GUI testing tool?

╄→尐↘猪︶ㄣ 提交于 2020-01-04 02:40:29
问题 what do you use for automatic GUI testing an eclipse rcp app? I checked Xored Q7 which looks pretty awesome, but it doesn't work 100%, the same goes for froglogic squish. I need something for testing SWT/JFACE and GEF(but i could live without GEF support). Is there any other mature testing tool? 回答1: I'm in charge of Xored's Q7 development, and we'll be very interesting learning more about your test case (where Q7 does not work 100% perfectly). Can you please email me or Xored support and I'm