Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Undang/Assets.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@
"idiom" : "ipad",
"size" : "83.5x83.5",
"scale" : "2x"
},
{
"idiom" : "ios-marketing",
"size" : "1024x1024",
"scale" : "1x"
}
],
"info" : {
Expand Down
10 changes: 5 additions & 5 deletions Undang/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13196" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13174"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<!--MainVC-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="Undang" customModuleProvider="target" sceneMemberID="viewController">
<viewController id="BYZ-38-t0r" customClass="MainVC" customModule="Undang" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
Expand All @@ -33,7 +33,7 @@
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
<connections>
<outlet property="myWebView" destination="XHs-GO-GH5" id="Fyq-ko-La0"/>
<outlet property="myWebView" destination="XHs-GO-GH5" id="DUb-MT-xvC"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
Expand Down
4 changes: 2 additions & 2 deletions Undang/MainVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class MainVC: UIViewController,UIWebViewDelegate {
}

func loadHTML(){
let url = URL(string : "http://undang.twpower.me:6231/")

let url = URL(string : "http://undang.twpower.me:6231/")
myWebView.addJavascriptInterface(JSInterface(viewController : self), forKey: "JSInterface");
myWebView.loadRequest(URLRequest(url: url!))

Expand Down
20 changes: 20 additions & 0 deletions test_appium.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
#iOS environment
import unittest
from appium import webdriver

desired_caps = {
"platformName" : "iOS",
"platformVersion" : "11.2",
"deviceName" : "iPhone SE",
"app" : "/Users/Jungin/Library/Developer/Xcode/DerivedData/Undang-eyvfnkzjzmxlqebazqxtenjcakpn"
}

def test_undang():
driver = webdriver.Remote('http://0.0.0.0:4723/wd/hub',desired_caps)
driver.switch_to.context('WEBVIEW')

assert '지금 한강은' in driver.page_source
driver.quit()

test_undang()