質問編集履歴
9
tag追加
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
8
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -66,7 +66,7 @@
|
|
66
66
|
|
67
67
|
…割愛…
|
68
68
|
|
69
|
-
かつ パス "
|
69
|
+
かつ パス "\\file.xls" にあるファイルを "data[date][xls]" に添付する
|
70
70
|
|
71
71
|
…割愛…
|
72
72
|
|
7
解決
test
CHANGED
File without changes
|
test
CHANGED
@@ -41,3 +41,51 @@
|
|
41
41
|
Capybara::FileNotFound:
|
42
42
|
|
43
43
|
cannot attach file, C:\file\file.xls does not exist
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
/*解決******************************************/
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
テスト環境
|
56
|
+
|
57
|
+
c:\test\spec\futures\xxx.future
|
58
|
+
|
59
|
+
c:\test\spec\futures\file.xls
|
60
|
+
|
61
|
+
c:\test\spec\steps\global_steps.rb
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
xxxx.future
|
66
|
+
|
67
|
+
…割愛…
|
68
|
+
|
69
|
+
かつ パス "C:\file\file.xls" にあるファイルを "data[date][xls]" に添付する
|
70
|
+
|
71
|
+
…割愛…
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
global_steps.rb のソースコード
|
76
|
+
|
77
|
+
…割愛…
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
step %(パス :path にあるファイルを :field に添付する) do |path, field|
|
82
|
+
|
83
|
+
attach_file field, path
|
84
|
+
|
85
|
+
end
|
86
|
+
|
87
|
+
…割愛…
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
/*******************************************/
|
6
挨拶
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
5
環境を追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
環境:windows 7
|
2
|
+
|
3
|
+
Capybara(selenium-webdriver) + Turnip でテスト
|
4
|
+
|
5
|
+
|
6
|
+
|
1
7
|
以下のファイル構成で、ファイルがアップロードされません。
|
2
8
|
|
3
9
|
お知恵を下さい。
|
4
パスの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
…割愛…
|
10
10
|
|
11
|
-
かつ パス "C:\file.xls" にあるファイルを "data[date][xls]" に添付する
|
11
|
+
かつ パス "C:\file\file.xls" にあるファイルを "data[date][xls]" に添付する
|
12
12
|
|
13
13
|
…割愛…
|
14
14
|
|
@@ -34,4 +34,4 @@
|
|
34
34
|
|
35
35
|
Capybara::FileNotFound:
|
36
36
|
|
37
|
-
cannot attach file, C:\file.xls does not exist
|
37
|
+
cannot attach file, C:\file\file.xls does not exist
|
3
初心者マーク添付
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
2
文字の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,4 +34,4 @@
|
|
34
34
|
|
35
35
|
Capybara::FileNotFound:
|
36
36
|
|
37
|
-
cannot attach file, C:\
|
37
|
+
cannot attach file, C:\file.xls does not exist
|
1
…割愛…を挿入
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,13 +6,17 @@
|
|
6
6
|
|
7
7
|
xxxx.future
|
8
8
|
|
9
|
-
|
9
|
+
…割愛…
|
10
10
|
|
11
11
|
かつ パス "C:\file.xls" にあるファイルを "data[date][xls]" に添付する
|
12
|
+
|
13
|
+
…割愛…
|
12
14
|
|
13
15
|
|
14
16
|
|
15
17
|
global_steps.rb
|
18
|
+
|
19
|
+
…割愛…
|
16
20
|
|
17
21
|
|
18
22
|
|
@@ -22,6 +26,8 @@
|
|
22
26
|
|
23
27
|
end
|
24
28
|
|
29
|
+
…割愛…
|
30
|
+
|
25
31
|
|
26
32
|
|
27
33
|
出力結果
|