testing - UI automation in windows phone 8 application -


i have searched automating ui in windows phone 8 applications , did not useful tool or framework there framework automate ui application in windows phone 8?

you can use winium.

why winium?

  • you have selenium webdriver testing of web apps, appium for
    testing of ios , android apps. , have selenium-based
    tools testing of windows apps too. of benefits? said appium:

  • you can write tests favorite dev tools using webdriver-compatible language such java, objective-c, javascript node.js (in promise, callback or generator flavors), php, python, ruby, c#, clojure, or perl selenium webdriver api , language-specific client libraries.

  • you can use testing framework.

how works?

winium.storeapps consists of 2 essential parts:

  1. winium.storeapps.driver implements selenium remote webdriver , listens jsonwireprotocol commands. responsible launching emulator, deploying aut, simulating input, forwarding commands winium.storeapps.innerserver, etc.

  2. winium.storeapps.innerserver (the 1 should embedded aut) communicates winium.storeapps.driver.exe , executes different commands, finding elements, getting or setting text values, properties, etc., inside application.

enter image description here

test samples:

python

# coding: utf-8 import unittest  selenium.webdriver import remote   class testmainpage(unittest.testcase): desired_capabilities = {       "app": "c:\\yorappundertest.appx"   }    def setup(self):       self.driver = remote(command_executor="http://localhost:9999",                          desired_capabilities=self.desired_capabilities)    def test_button_tap_should_set_textbox_content(self):       self.driver.find_element_by_id('setbutton').click()       assert 'caramba' == self.driver.find_element_by_id('mytextbox').text    def teardown(self):       self.driver.quit()   if __name__ == '__main__': unittest.main()  please check link below. can lot.  have follow guidance in project. 

c#

using system; using nunit.framework; using openqa.selenium.remote;  [testfixture] public class testmainpage {   public remotewebdriver driver { get; set; }    [setup]   public void setup()   {       var dc = new desiredcapabilities();       dc.setcapability("app", "c:\\yorappundertest.appx");       this.driver = new remotewebdriver(new uri("http://localhost:9999"), dc);   }    [test]   public void testbuttontapshouldsettextboxcontent()   {       this.driver.findelementbyid("setbutton").click();       assert.istrue("caramba" ==       this.driver.findelementbyid("mytextbox").text);   }    [teardown]   public void teardown()   {       this.driver.quit();   } } 

winium.storeapps

i working on windows phone automation using opensource

project, works pretty me.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -