Robot Framework RIDE āļ•ิāļ”āļ•ั้āļ‡ āđ€āļĢิ่āļĄāđ€āļ‚ีāļĒāļ™ - For Beginner

Robot Framework āļ„ืāļ­āļ­āļ°āđ„āļĢ
āđ€āļ­āļēāļŠั้āļ™āđ†āļ‡่āļēāļĒāđ† āļ„ืāļ­āđ‚āļ›āļĢāđāļāļĢāļĄāđ€āļ­āļēāđ„āļ§้āđ€āļ‚ีāļĒāļ™āđƒāļŦ้āļĢāļ°āļšāļšāļĄัāļ™āļ—āļģāļ‡āļēāļ™āļ‚āļ­āļ‡āļ•ัāļ§āļĄัāļ™āđ€āļ­āļ‡ āđ„āļĄ่āļ•้āļ­āļ‡āđ„āļ›āļ—āļģāļ‹้āļģāđ† āđ€āļŠ่āļ™ āđ€āļ­āļēāđ„āļ§้āđāļ้ Bug āđ€āļ§āļĨāļēāļ—āļģāđ€āļ§็āļšāļŦāļĢืāļ­āļĢāļ°āļšāļšāļ­āļ°āđ„āļĢāļ็āđāļĨ้āļ§āđāļ•่ āđ€āļĢิ่āļĄāļัāļ™āđ€āļĨāļĒ āļ­āļĒ่āļēāļĄัāļ§āđ€āļŠีāļĒāđ€āļ§āļĨāļē

āļāļēāļĢāļ•ิāļ”āļ•ั้āļ‡ āļ‚āļ­āļšāļ­āļāļ§่āļēāđ‚āļ„āļ•āļĢāđ€āļĒāļ­āļ° āļˆāļ°āļĄีāļ›ุ่āļĄāđƒāļŦ้āļ„āļĨิāļāļ—ีāđ€āļ”ีāļĒāļ§āđāļĨ้āļ§āļ•ิāļ”āļ•ั้āļ‡āđƒāļŦ้āļŦāļĄāļ”āđ€āļĨāļĒāđ„āļĄ่āđ„āļ”้ āļ•้āļ­āļ‡āļĄāļēāļ•ิāļ”āļ•ั้āļ‡āļ—ีāļĨāļ°āļ•ัāļ§ āđāļĨāļ°āļāļēāļĢ Download āļĄāļēāđāļ•่āļĨāļ°āđ‚āļ›āļĢāđāļāļĢāļĄāļ็āđāļŠāļ™āļˆāļ°āđ€āļĒāļ­āļ° āđ€āļˆ้āđ€āļĨāļĒāļĢāļ§āļĄāļ—ุāļāļ­āļĒ่āļēāļ‡āđ„āļ§้āļ—ี่āļ™ี่ āļ—ี่āđ€āļ”ีāļĒāļ§āļˆāļšāļ›āļ°

1. āļˆāļ‡ Download āđ‚āļ›āļĢāđāļāļĢāļĄāļ”ัāļ‡āļ•่āļ­āđ„āļ›āļ™ี้ (āļ„ืāļ­ download āļĄāļēāđƒāļŦ้āļ„āļĢāļšāļ—ีāđ€āļ”ีāļĒāļ§āļˆāļ°āđ„āļ”้āđ„āļĄ่āļ‡āļ‡ āļŦāļĢืāļ­āđƒāļ„āļĢāļˆāļ°āļ‡āļ‡āļ็āļ§่āļēāđ„āļ›)
     1.1 Python 2.7.x āđ„āļ›āļ—ี่ 
            https://www.python.org
     1.2 wxPython2.8-win64-unicode-2.8.12.1-py27 
          āđ„āļ›āļ—ี่ https://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/
     1.3 Chrome Driver āđ„āļ›āļ—ี่
          
https://chromedriver.storage.googleapis.com/index.html?path=2.37/
           āļ•ัāļ§āļ™ี้āđ„āļĄ่āļ•้āļ­āļ‡āļ็āđ„āļ”้ āļŦāļēāļāđƒāļ„āļĢāđ„āļĄ่āđ„āļ”้ Test Script āļœ่āļēāļ™āļ—āļēāļ‡ Browser

2. āļĨāļ‡ Python āļ”ัāļšāđ€āļšิ้āļĨāļ„āļĨิāļāļ—ี่ exe āđ€āļĨืāļ­āļāđ„āļ›āđ„āļ§้āļ—ี่ C:\ āļŦāļĨัāļ‡āļˆāļēāļāļ™ั้āļ™āļ„āļĨิāļ next āļ­āļĒ่āļēāļ‡āđ€āļ”ีāļĒāļ§āļŦāļĨัāļ‡āļˆāļēāļāđ€āļ›āļĨี่āļĒāļ™ path āļ—ี่āļˆāļ°āļĨāļ‡āđāļĨ้āļ§

3. āđ„āļ›āļ—ี่ windows āļžิāļĄāļž์ cmd āđ€āļžื่āļ­āđ€āļ›ิāļ” command line (āļ„āļ‡āđ„āļĄ่āļ•้āļ­āļ‡āļšāļ­āļāļ™āļ°āļ§่āļēāļ­āļĒู่āļ—ี่āđ„āļŦāļ™ āļ–้āļēāļŦāļēāđ„āļĄ่āđ€āļˆāļ­āļ็āļ•āļĢāļ‡āļ‹้āļēāļĒāļĄืāļ­āđ€āļĄāļ™ูāļ—ี่āđ€āļĢāļēāļˆāļ°āļ„āļĨิāļāđ€āļ‚้āļēāđ‚āļ›āļĢāđāļāļĢāļĄāļ™ั้āļ™āđāļŦāļĨ่āļ° āļĄีāļĢูāļ›āđāļ§่āļ™āļ‚āļĒāļēāļĒāļ­āļĒู่ āļŦāļĢืāļ­āļ–้āļē Windows āđ€āļ่āļēāļŦāļ™่āļ­āļĒāļ็āļˆāļ°āđ€āļ›็āļ™āļŠ่āļ­āļ‡āđƒāļŦ้āļ„้āļ™āļŦāļē āļžิāļĄāļž์āđ€āļ‚้āļēāđ„āļ›āđ€āļĨāļĒ cmd āđāļĨ้āļ§āļāļ” enter)


4. āļˆāļēāļāļ™ั้āļ™āđƒāļŦ้āļžāļĢ้āļ­āļĄāđ„āļ›āļ—ี่ Folder āļ—ี่āđ€āļĢāļēāđ€āļžิ่āļ‡āļĨāļ‡ Python āđ„āļ›āļ•āļēāļĄāļ āļēāļž
5. āļ•ิāļ”āļ•ั้āļ‡āđ€āļ„āļĢื่āļ­āļ‡āļĄืืāļ­āļ”ัāļ‡āļ•่āļ­āđ„āļ›āļ™ี้ āđ„āļĄ่āļ•้āļ­āļ‡āļ–āļēāļĄāļ§่āļēāļĄัāļ™āļ„ืāļ­āļ­āļ°āđ„āļĢ āđ€āļžāļĢāļēāļ°āđ€āļˆ้āđ€āļ­āļ‡āļ็āđ„āļĄ่āļĢู้āļ­ิāđ† āļŦāļĨัāļāļ‡่āļēāļĒāđ†āļ„ืāļ­ copy āļ„āļģāļŠั่āļ‡āđāļĨ้āļ§āļ§่āļēāļ‡āļ—ี่ Command line āļŦāļĨัāļ‡ C:\Python27> āļ™āļ°āļˆ้āļ° āļ‚āļ­āļĒ้āļģāļ§่āļēāļ—ุāļāļ„āļģāļŠั่āļ‡ āđ€āļžāļĢāļēāļ°āđ€āļˆ้āļĢāļ§āļšāļĢัāļ”āļ•ัāļ”āļ•āļ­āļ™ āđāļ•่āļ–้āļēāđƒāļ„āļĢāļŠāļ­āļšāđāļšāļšāļĄีāļ„āļģāļ­āļ˜ิāļšāļēāļĒāđ€āļĒāļ­āļ° āļĨāļ­āļ‡āļ„āļĨิāļāđ€āļ‚้āļēāđ„āļ›āļ—ี่āļ™ี่ āļ„āļģāđ€āļ•ืāļ­āļ™ āļāļĢั่āļ‡āļĨ้āļ§āļ™āđ†āļ™āļ° āđāļ•่āļžāļ­āđ€āļ”āļēāđ„āļ”้
https://www.swtestacademy.com/getting-started-robotframework/

pip install robotframework āļāļ” Enter
python -m pip install -U pip āļāļ” Enter
robot --version āļāļ” Enter
rebot --version āļāļ” Enter


pip install --upgrade robotframework  āļāļ” Enter
pip install robotframework==2.9.2  āļāļ” Enter

āļ—āļģāļ—ีāļĨāļ°āļ„āļģāļŠั่āļ‡āļŦāļĨāļ° āļĄัāļ™āļĄีāđƒāļŦ้ āļāļ” Enter āļ„ั้āļ™āļ­āļĒู่āļ™āļ°


** āļ–้āļē command line āļĄัāļ™āļĒāļēāļ§ āļ็āļ›ิāļ”āđāļĨ้āļ§āđ€āļ‚้āļēāđƒāļŦāļĄ่ āļ็āļ—āļģāļ•่āļ­āļ‚ั้āļ™āļ•āļ­āļ™āļ–ัāļ”āđ„āļ›āđ„āļ”้āļ™āļ°āļ„āļ°

āđāļĨāļ°āļˆāļēāļāļ™ั้āļ™āđƒāļŦ้āļĨāļ‡ wxPython āđāļĨ้āļ§āļ—āļģāļ”ัāļ‡āļ™ี้ āļāļ” Next āļ”ัāļ‡āļ āļēāļžāļ­āļĒ่āļēāļ‡āđ€āļ”ีāļĒāļ§



āļĨāļ‡āļ•่āļ­āļŦāļĨัāļ‡āļˆāļēāļāļĨāļ‡ wxPython āđ€āļŠāļĢ็āļˆ āļĒัāļ‡āļ—āļģāļ—ี่ command line āļ­āļĒู่āļ™āļ° āļ–้āļēāļŦāļĨุāļ”āđƒāļŦ้āđ€āļ‚้āļēāđ„āļ›āđƒāļŦāļĄ่

pip install robotframework-ride   āļāļ” Enter
pip install robotframework-selenium2library    āļāļ” Enter
pip install --upgrade robotframework-selenium2library    āļāļ” Enter

pip install robotframework-selenium2library==1.4.1    āļāļ” Enter
pip install --upgrade selenium    āļāļ” Enter
pip install selenium==2.34    āļāļ” Enter

6. āļŠุāļ”āļ—้āļēāļĒāļĨāļ° āđƒāļŦ้āļĨāļ­āļ‡āļžิāļĄāļž์āļ„āļģāļ§่āļē ride.py āđƒāļ™ command line āđāļĨ้āļ§ enter āļˆāļ°āļĄีāļŦāļ™้āļēāļˆāļ­āđāļŠāļ”āļ‡āđƒāļŦ้āđ€āļĢāļēāđ€āļ‚ีāļĒāļ™āđ‚āļ„้āļ”āđāļšāļšāđ€āļ๋āđ†āļ”ัāļ‡āļ āļēāļžāļ„āļ°

āļ—ีāļ™ี้āļ็āđ‚āļ‹āđ‚āļĨ่āļัāļ™āđ€āļĨāļĒ āļ„āļĢั้āļ‡āļŦāļ™้āļēāļˆāļ°āļĄāļēāļŠāļ­āļ™āļāļēāļĢāđ€āļ›ิāļ” Browser āđāļĨ้āļ§ login āđ€āļ‚้āļē facebook āđ‚āļ”āļĒāđƒāļŠ้ Robot Framework āļŦāļĢืāļ­āļ–้āļēāđƒāļ„āļĢāļĢāļ­āđ„āļĄ่āđ„āļŦāļ§āđ€āļ‚้āļēāđ„āļ›āļ—ี่āļ™ี่āļ„āļ°
https://youtu.be/cmwCi1TGPC4




SSIS āļ•ัāļ§āđāļ›āļĢāļ§ัāļ™āļ—ี่āļ›ัāļˆāļˆุāļšัāļ™ date_now

āļāļēāļĢāļŠāļĢ้āļēāļ‡āļ•ัāļ§āđāļ›āļĢāļ§ัāļ™āļ—ี่āđ€āļžื่āļ­āļāļģāļŦāļ™āļ”āļ‚āļ­āļšāđ€āļ‚āļ•āđƒāļ™āļāļēāļĢāļ”ึāļ‡āļ‚้āļ­āļĄูāļĨ


āļŠāļĢ้āļēāļ‡āļ•ัāļ§āđāļ›āļĢāļ”ัāļ‡āļ™ี้
date_start
(āļ•ัāļ§āđāļ›āļĢāļŦāļĨัāļāļ§ัāļ™āđ€āļĢิ่āļĄāļ•้āļ™ āļŦāļēāļāđ„āļĄ่āđ„āļ”้āđƒāļŠ่āļ„่āļēāļ­āļ°āđ„āļĢ āļ•ัāļ§āđāļ›āļĢāļ™ี้āļˆāļ°āļ”ึāļ‡āļ„่āļēāļĄāļēāļˆāļēāļāļ•ัāļ§āđāļ›āļĢ fix_date_start)

fix_date_start 
(āļ•ัāļ§āđāļ›āļĢāļ§ัāļ™āļ—ี่āđ€āļĢิ่āļĄāļ•้āļ™ Default āđ„āļ§้)

date_end 
(āļ•ัāļ§āđāļ›āļĢāļŦāļĨัāļāļ§ัāļ™āļŠิ้āļ™āļŠุāļ” āļŦāļēāļāđ„āļĄ่āđ„āļ”้āđƒāļŠ่āļ„่āļēāļ­āļ°āđ„āļĢ āļ•ัāļ§āđāļ›āļĢāļ™ี้āļˆāļ°āļ”ึāļ‡āļ„่āļēāļĄāļēāļˆāļēāļāļ•ัāļ§āđāļ›āļĢ fix_date_end)

fix_date_end 
(āļ•ัāļ§āđāļ›āļĢāļ§ัāļ™āļ—ี่āļŠิ้āļ™āļŠุāļ” Default āđ„āļ§้)

āļˆāļēāļāļ™ั้āļ™āđƒāļŠ่ Function āđ€āļžื่āļ­āļāļģāļŦāļ™āļ”āļ„่āļēāđƒāļŦ้āļ§ัāļ™āļ—ี่āđ€āļĢิ่āļĄāļ•้āļ™
@[User::date_start] =="" ? (DT_STR, 4, 1252) DATEPART("yy" ,DATEADD("dd",-1,GETDATE()))+ "-01"
+ "-01":@[User::fix_date_start]


āļˆāļēāļāļ™ั้āļ™āđƒāļŠ่ Function āđ€āļžื่āļ­āļāļģāļŦāļ™āļ”āļ„่āļēāđƒāļŦ้āļ§ัāļ™āļ—ี่āļŠิ้āļ™āļŠุāļ”
@[User::date_end] =="" ?
 (DT_STR, 4, 1252) DATEPART("yy" ,DATEADD("dd",-1,GETDATE()))+"-"+(DT_STR, 4, 1252) DATEPART("mm" ,DATEADD("dd",-1,GETDATE()))
+"-"+(DT_STR, 4, 1252) DATEPART("dd" ,DATEADD("dd",-1,GETDATE())):@[User::fix_date_end]

āļ›āļĨ.
āđ€āļ§āļĨāļēāđ€āļĢีāļĒāļāđƒāļŠ้ āđƒāļŦ้āđ€āļĢีāļĒāļāđƒāļŠ้āļ•ัāļ§āđāļ›āļĢāļŠื่āļ­ date_start, date_end

How to change URL or Folder in WordPress

Why can not just change folder name of website in Wordpress but it did't work


If you not programmer you can search this keyword on google and follow them step "wordpress change page url"

but if you are any expert, I hope just look at this image then you will can get it how to do. Just change to name of myurl to the new domain name or new folder as you want.

good luck.


My knowledge will be here forever



Have you ever forgot some function name of program or some step to do some thing? ME! often ^_^ and The way I have tried to searching on google, sometime it fast and easy to get some answer but some time I have take long time to get some solution.

And if I have to asked some one in my office, some time they help and some time they were busy, I do not want to disturb them often and some of them were really help me but some of them were not happy when I asked them often and often T_T, YES! I understand that my brain have limited for memory and an other one may upset when they have to answer same question again and again then I have the way for me to help to remember and keep all knowledge as I ever had and will have in the future in here ^__^, If you afraid of your recognize, This way can help you. Happy and Enjoin!.

PHP Send Mail with Attached File






$filename_localfile="myfile.csv";
$mailContent="My content";
$mail_boundary = md5(uniqid(time()));
$mailSubject="My subject will appear on mail title";

$mail_headers .= "MIME-Version: 1.0\r\n";
$mail_headers .= "Content-type: multipart/mixed;boundary=\"$mail_boundary \"";
$mail_headers .= "\r\n\r\n";
$mail_headers .= "This is a multi-part message in MIME format.";
$mail_headers .= "From:soly K <mymail@gmail.com>\r\n";

$mail_headers .= "\r\n\r\n";
$fp = fopen($filename_localfile, "r");
$file = fread($fp, filesize($filename_localfile));

$file = chunk_split(base64_encode($file));

$mail_body = "--$mail_boundary\n";
$mail_body .= "Content-type: text/plain; charset=euc-kr\r\n";
$mail_body .= "Content-transfer-encoding: 8bit\r\n\r\n";
$mail_body .= $mailContent."\r\n";
$mail_body .= "--$mail_boundary\r\n";
$filename = basename($filename_localfile);

$mail_body .= "Content-type: application/msword; name=$filename\r\n";
$mail_body .= "Content-transfer-encoding:base64\r\n\r\n";
$mail_body .= $file. "\r\n\r\n";

$mail_body .= " --$mail_boundary--";

mail("tomailsomeone@gmail.com",$mailSubject, $mail_body, $mail_headers);

Import Data from Excel to Create Dashboard on QlikView - 2


Import Data from Excel for create dashboard in QlikView





You can import data from excel to QlikView on dashboard and I can say that it's such a very simple, However this way it was not flexible for user to flush data to keep present every time but it's simple way to create dashboard for short terms.

OKEY!
Let's see my VDO
https://youtu.be/iamSi7H_AO0



Create Table Data for Dashboard by QlikView - 1

How to use QlikView in the first time to create simple dashboard?



HELLO!
How are you? How is your life there? How is the weather? in Thailand it's very so hot, that can melt me, however I hope you enjoin life for this summer time.

For this season I would present you how to create table data on dashboard by QlikView (If you do not know about QlikView you can click on this link http://www.mymemoboxs.com/2015/04/what-is-qlikview-product.html)

And for good news, I have recorded VDO how to for all of you too, but for the sound that so sorry, You have to imagine how is your voice look like ^__^

OKEY! Enjoin VDO
https://youtu.be/4JQ9q9oQy2M